Broken Access Control and Privilege Escalation

Day 4 taught IDOR: reading another user’s object because the server forgot to check ownership. Today we widen that same lens from data to power. Broken access control is the whole family IDOR belongs to, and its most dangerous form is privilege escalation: not just seeing data you should not, but gaining abilities you were never meant to have. Moving from a normal user to an admin. From a guest to an owner. From read to write to control.
This is the second vulnerability class in the series, and it builds directly on Day 4’s mindset. If IDOR is asking am I allowed to see this object, access control broadly is asking am I allowed to do this action, and privilege escalation is what happens when the answer should be no but the server never checks.
Inside scope only, with your own test accounts. Privilege escalation touches administrative functions, so you test with accounts you control, never on live systems you are not authorized against.
The access control family
Access control is the set of rules deciding who can do what. When those rules are missing or wrong, you have broken access control, and it comes in a few shapes you should be able to name.
Horizontal access control failure. You access another user’s resources at your own privilege level. This is IDOR, Day 4. User to user, same level, wrong owner.
Vertical access control failure, privilege escalation. You gain a higher privilege level than your account should have. User to admin. Guest to member. This is today’s focus and the more severe shape, because admin powers affect everyone, not one other user.
Function level access control failure. A specific function or endpoint does not check your role. The admin dashboard loads for a normal user because the check was only in the UI, not the server. The admin API accepts your request because it never verified your role.
Context or state based failure. Access is checked at one point but not another, so you reach a protected state by skipping the step that would have stopped you, or by retaining access that should have been revoked.
They are all the same root cause as IDOR, the server failing to verify authorization, applied to actions and roles instead of just objects.
Why privilege escalation is high value
IDOR exposes one victim’s data per exploit. Privilege escalation exposes everyone, because admin access usually means access to all users, all data, and all controls. That is why these reports command higher severity and bounty. The GitHub Enterprise case escalated a scoped token to full admin and owner of an organization, rated high severity. Report: https://hackerone.com/reports/1732595
And the escalation is often shockingly mundane in mechanism. It is rarely a clever exploit. It is usually a missing check on a role changing action, exactly like IDOR is a missing check on an object.
The patterns that repeat
Learn these shapes and you know where to look.
The UI only check. The application hides admin features from normal users in the interface, but the server does not enforce it. You find the admin endpoint, call it directly, and it works. The check was cosmetic. This is the most common privilege escalation of all, because developers secure the view and forget the server.
Direct role assignment. A request lets you set or change a role, and the server does not verify you are allowed to assign that role. The Rocket.Chat case is a classic multi step version: a guest added itself to a bot group that held a permission, used that permission to create an integration script, and the script added the user to the admin group, because the role changing method did not properly validate who was allowed to change roles. Report: https://hackerone.com/reports/501081
Revoked access that still works. Access is granted, then removed, but old sessions or tokens keep working because revocation was not enforced server side. The Omise case: an admin role was removed from a user, but the user could still perform admin actions via the API, because the server did not re check the role. Report: https://hackerone.com/reports/1607756
Mass assignment of privileged fields. A request that updates your own profile also accepts a role or permission field you were not supposed to control. You add "role": "admin" to an update request and the server trusts it.
Parameter or request tampering during signup or state change. You tamper with a registration or workflow request to grant yourself a privileged role during a process that assumed you could not.
How to hunt broken access control
Point this at the functions and endpoints your recon surfaced, especially anything admin, role, user management, or settings related.
Step 1: map the roles. Identify the privilege levels the app has: anonymous, user, admin, owner, whatever it uses. For testing you want at least two: a low privilege account, and knowledge of what a high privilege account can do. Where possible, have one of each, both yours.
Step 2: enumerate privileged functions. As the high privilege account, with a proxy capturing traffic, use every administrative function: change a role, delete a user, access the dashboard, change settings. Record every request these actions generate. These are your targets.
Step 3: replay as the low privilege account. Take each privileged request and replay it from the low privilege account’s session. The question for each: does the server reject it, or does it work. If it works, that is vertical privilege escalation, a normal user performing an admin action.
Step 4: test the UI only check directly. Find admin endpoints and call them from a normal account even if the UI never shows them to you. Your recon js_endpoints.txt from Part 3 often reveals admin endpoints that the interface hides but the server still serves.
Step 5: test role and permission fields. On any request that updates your account, try adding role, permission, is_admin, or similar fields. See if the server accepts attacker set privilege values, the mass assignment pattern.
Step 6: test revocation. Grant access, then remove it, and check whether the old session or token still works. The Omise pattern.
Writing the report
The structure, tuned for access control:
Title: Privilege escalation: [low role] can perform [admin action] via [endpoint]
Summary:
One sentence: which role, which action they should not be able to do, which endpoint.
Steps to Reproduce:
Create a low privilege account (and note a high privilege action).
As the low account, send [request] to [endpoint].
Observe the privileged action succeeds despite insufficient role.
(Exact requests, both accounts’ context, screenshots.)
Impact:
What the attacker gains: admin access, control over all users/data,
ability to [specific damage]. Note scale: admin = everyone.
Remediation:
Enforce server-side authorization on [action]: verify the
authenticated user’s role permits it before executing.
The strong disclosed reports share the pattern: clear role setup, the exact request that should have been rejected, and proof it succeeded. The Rocket.Chat report even included the integration script and the exact method that failed to validate, which is the clarity that gets paid.
The mindset, extended from Day 4
Day 4’s question was am I allowed to see this. Today’s is am I allowed to do this, and does the server actually check, on every action, not just in the UI. Carry one principle: authorization must be enforced server side on every privileged action, and anywhere it is not is a finding. The UI hiding a button means nothing. The real question is always whether the server verifies, and testing that directly is the entire skill.
Your recon surfaced admin panels, user management endpoints, and role related functions. Access control testing is what you point at them, and it is among the highest value classes you can find.
Homework for Day 5
- On an in scope target, map its privilege levels and set up a low privilege account you control.
- Enumerate privileged functions, from a high privilege account if you have one, or from the admin endpoints your recon found.
- Replay each privileged request from the low privilege account and record which succeed. Each success is a vertical escalation.
- Test UI only checks by calling admin endpoints directly as a normal user, test role fields for mass assignment, and test whether revoked access still works.
- Read all three disclosed reports end to end: GitHub token to admin (https://hackerone.com/reports/1732595), Rocket.Chat guest to admin (https://hackerone.com/reports/501081), and Omise removed admin still works (https://hackerone.com/reports/1607756). For each, note the exact missing server side check.
A confirmed privilege escalation on an in scope target is a high severity finding. Document it with both accounts and the exact rejected-but-accepted request, and write it up in the report shape above.
Day 6 moves from authorization to injection, starting with the class that still tops impact charts, SQL injection, pointed at the parameters your recon found, with a real disclosed report broken down end to end.