Broken Access Control
Broken access control is when an application fails to properly enforce what each user is allowed to see or do, so people can view other users' data, use admin functions or change records they shouldn't. It's OWASP's top web risk.
Also called: access control vulnerability, authorization flaw, privilege escalation in web apps, BOLA
What is broken access control?
Authentication checks who you are; access control (authorization) checks what you're allowed to do. Broken access control means the second check is missing or flawed. It's number one in the OWASP Top 10 for 2025, as it was in 2021, because it's common and often leads straight to data breaches.
Common examples
- [Insecure direct object references (IDOR)](/glossary/insecure-direct-object-reference/): changing `invoice?id=1001` to `1002` shows someone else's invoice.
- Missing function-level checks: a regular user can open `/admin` or call an admin API directly because the button was hidden, not blocked.
- Privilege escalation: a user changes their role in a request and becomes an admin.
- Tampered tokens or cookies that the server trusts without checking.
- [Server-side request forgery](/glossary/server-side-request-forgery/), now grouped here by OWASP.
How to prevent it
OWASP's authorization guidance:
- Deny by default: users get nothing unless explicitly allowed.
- Check permissions on the server for every request, not just in the user interface.
- Apply [least privilege](/glossary/least-privilege/) to user roles and API keys.
- Use the framework's access control features consistently instead of writing checks ad hoc.
- Log access failures and alert on patterns.
Automated scanners often miss these flaws because they need an understanding of who should see what. Manual penetration testing with several test accounts is the best way to find them.
Related terms
Sources
- OWASP Top 10:2025, A01 Broken Access Control (OWASP Foundation)
- Authorization Cheat Sheet (OWASP)
Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.
