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
F19065712: D21851.diff
Sun, Nov 30, 2:53 AM
F19019481: D21851.diff
Sun, Nov 23, 2:39 PM
F18891424: D21851.id.diff
Fri, Nov 7, 10:37 AM
F18877639: D21851.diff
Thu, Nov 6, 11:08 AM
F18877032: D21851.diff
Thu, Nov 6, 5:35 AM
F18850691: D21851.diff
Oct 30 2025, 6:45 PM
F18813742: D21851.id52080.diff
Oct 20 2025, 6:48 PM
F18756244: D21851.id.diff
Oct 5 2025, 10:25 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.