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
F14003290: D21851.diff
Sat, Oct 26, 4:24 AM
F13980965: D21851.diff
Sat, Oct 19, 1:35 PM
F13976835: D21851.diff
Fri, Oct 18, 3:55 PM
Unknown Object (File)
Wed, Oct 9, 2:42 PM
Unknown Object (File)
Mon, Oct 7, 4:09 AM
Unknown Object (File)
Thu, Oct 3, 6:30 PM
Unknown Object (File)
Wed, Oct 2, 11:27 AM
Unknown Object (File)
Sat, Sep 28, 7:00 PM
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.