Page MenuHomePhabricator

Fix a policy issue where permissions were not properly checked when disabling global builtin queries
ClosedPublic

Authored by epriestley on May 31 2022, 5:59 PM.
Tags
None
Referenced Files
F22627053: D21851.id52081.diff
Tue, Sep 29, 9:49 PM
F22625746: D21851.diff
Tue, Sep 29, 8:45 PM
F22562376: D21851.id.diff
Thu, Sep 24, 2:38 PM
Unknown Object (File)
Fri, Sep 11, 3:34 AM
Unknown Object (File)
Aug 18 2026, 4:50 PM
Unknown Object (File)
Aug 14 2026, 12:26 AM
Unknown Object (File)
Aug 2 2026, 4:54 AM
Unknown Object (File)
Jul 30 2026, 10:28 AM
Subscribers
None

Details

Summary

See https://hackerone.com/reports/1573143. The pathway for disabling global builtin queries is missing a policy check. Add it.

Test Plan
  • Accessed the "/search/delete/id/.../" URI for a global builtin query as a non-administrator.
  • Before patch: could improperly disable queries. -After patch: proper policy exception.

Diff Detail

Repository
rP Phabricator
Branch
query1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25759
Build 35587: arc lint + arc unit

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 31 2022, 6:00 PM
This revision was automatically updated to reflect the committed changes.