Broken Access Control Explained: The Bug Hunters Keep Finding (and How to Test for It)
If you ask experienced bug bounty hunters which bug pays most consistently for beginners, many will say the same thing: broken access control. It topped the OWASP Top 10, it needs no fancy tooling, and it hides in almost every web app. Here’s how to understand it — and test for it the legal way.
What Is Broken Access Control?
Access control is the rule that says who can do what. Users should only see their own data; admins can see everyone’s; anonymous visitors can see public pages. Broken access control means those rules fail — the app doesn’t enforce them, or enforces them only in the browser where an attacker can bypass them.
It shows up in a few classic forms:
- Accessing other users’ data — changing a user ID in a URL or API request and getting someone else’s profile, order or invoice. (We covered its cousin, IDOR, in an earlier post — IDOR is one type of broken access control.)
- Privilege escalation — a normal user reaching admin pages like /admin or calling admin API endpoints directly.
- Missing checks on functions — the “Delete” button is hidden from regular users, but the delete endpoint itself never checks who’s calling it.
- Metadata manipulation — changing a role=user field in a request to role=admin and having the server accept it.
Why It’s So Common
Developers usually build the happy path: the UI shows each user only their own stuff, and testing confirms it looks right. But the UI is not security. Anyone can edit requests with a proxy like Burp Suite, and the server must re-check every request. When it doesn’t, the bug is live.
How to Test for It (Legally)
Only test on programs with clear permission: bug bounty scopes, your own apps, or legal labs like PortSwigger Academy and OWASP Juice Shop.
- Create two test accounts in the target (where the program allows it). Account A and Account B.
- Map the app as Account A. Note your profile URL, your order IDs, your settings endpoints.
- Replay as Account B. Take a request that returns Account A’s data and send it with Account B’s session. If you get A’s data, you’ve found the bug.
- Try the admin paths. Request /admin, /dashboard/admin, or admin API endpoints as a normal user. A 200 response with real admin content is a finding; a redirect to login is not.
- Test the hidden functions. If the UI hides a button, try calling its endpoint directly. The server — not the button — is the authority.
- Check HTTP methods. Sometimes GET is blocked but POST or PUT to the same endpoint is not.
How to Report It Well
A good report makes the payout. Include: the exact request and response (sanitized — never include real users’ private data), the two accounts you used, the impact in plain terms (“any logged-in user can read any other user’s invoices”), and a fix suggestion (“enforce ownership checks server-side on every object access”). We covered report writing in detail in an earlier post — this is where it pays off.
How Developers Fix It
- Deny by default. No access unless explicitly granted.
- Check on the server, every time. Never trust the UI, hidden fields or client-side code.
- Use one central authorization layer instead of scattered checks that someone will forget.
- Test with two accounts in QA — the same technique hunters use, applied before release.
Start Here
Broken access control is the highest-value beginner bug because it rewards thinking, not tooling. Set up two accounts in a legal lab, follow the steps above, and you’ll understand the OWASP #1 risk from the inside. Only test systems you own or have written permission to test — that’s what separates a hunter from a criminal.



Comments
Post a Comment