Bugcrowd ยท Privilege Escalation ยท $550
The employee who could fire the boss
Role systems fail at the edges โ the action nobody thought to gate.
Background
Facebook Pages are run by teams: admins, editors, moderators and analysts, each with a defined ceiling of power. The entire model depends on one invariant โ a role can never act above its own level. An editor manages content; only an admin manages people. Break that invariant and you don't just have a bug, you have a hostile-takeover primitive for every business Page on the platform: remove the real admins, and the Page is yours.
The vulnerability
The role-management flow validated that the caller had a role on the Page, but the specific action โ removing a member whose role was admin โ was not gated on the caller being an admin. From a lower-privileged account, the removal request for an admin target was accepted and executed.
This is the classic shape of privilege-escalation bugs: the UI hides the button, the API forgets the check. Anyone testing only through the interface would conclude the action is impossible; the server disagreed.
How I found it
- Two test Pages, three roles. I set up my own Pages and accounts at different role levels โ no real business was ever touched.
- Capture the legitimate flow. As an admin, I performed a normal member-removal and recorded the exact request.
- Replay from below. I replayed the equivalent request from the lower-role account, targeting the admin. The server processed it.
- Verify state change. The admin was actually removed โ not just a success response, a real change in the Page's role list.
Impact
Any disgruntled contributor, compromised low-privilege account or social-engineered invite could decapitate a Page's ownership: remove all admins, then control a business's public presence, its ad accounts' front door and its customer channel. For large brands and media Pages, that is an extortion-grade primitive.
Remediation
- Authorize the action against the target's role, server-side: removing an admin requires an admin caller โ always, on every endpoint and API version.
- Test role matrices as a grid (caller role ร target role ร action), not as individual happy paths.
- Audit sibling actions โ role changes usually share the same missing check as role removals.
Lessons
Privilege bugs hide where two hierarchies meet: the caller's level and the target's level. When you test authorization, vary both โ most testers only vary their own.
Found something similar?
I help teams verify and fix issues like this โ and I retest my own reports for free. Reach me at sr558079@gmail.com or read more writeups.