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
F13090949: D21851.diff
Thu, Apr 25, 2:39 AM
Unknown Object (File)
Mon, Apr 22, 2:43 PM
Unknown Object (File)
Sat, Apr 20, 6:02 PM
Unknown Object (File)
Sat, Apr 20, 2:48 PM
Unknown Object (File)
Fri, Apr 19, 6:47 AM
Unknown Object (File)
Mon, Apr 15, 8:39 PM
Unknown Object (File)
Thu, Apr 11, 9:56 AM
Unknown Object (File)
Sun, Apr 7, 7:50 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.