Broken access control
A flaw that lets users read, change or delete data, or run actions, beyond their permissions; first in the OWASP Top 10 since 2021.
Broken access control means the app checks who you are but not what you may do. A user changes an ID in a URL and sees another customer’s invoice, calls an admin API from a normal account, or edits a record after their role was removed. OWASP ranked it A01 in 2021 and kept it first in the 2025 edition, where every tested application had some form of it and SSRF was folded into the category.
The usual cause is a check done in the interface instead of on the server, or done once per page instead of once per record. IDOR and BOLA are the most common variant. The fix is deny by default, one authorization layer on the server and the principle of least privilege; in a shared database, Row Level Security adds a second line. Apps generated quickly with AI often hide a button from the interface and leave the endpoint behind it open.
Sources
- OWASP: A01:2021 Broken Access Control owasp.org
- OWASP: A01:2025 Broken Access Control top10.owasp.org
Related terms
- IDOR / BOLA (insecure direct object reference): A bug where changing an ID in a request, say invoice 1043 to 1044, returns someone else’s data because the server never checks who owns it.
- OWASP Top 10: The OWASP Foundation’s list of the ten most critical web application security risks, updated every few years.
- Authentication vs authorization (authn vs authz): Authentication proves who you are; authorization decides what you may do. Most access bugs live in the second, after a perfectly good login.
- Principle of least privilege: Every person, service and AI agent gets only the access needed for its task, for only as long as needed, so a stolen account can do little harm.
- Row Level Security (RLS): Database rules that decide, row by row, which records each user may read or change. Missing RLS is a common leak in AI-built apps.
- SSRF (server-side request forgery): Tricking your server into fetching a URL the attacker chose, often an internal address the attacker cannot reach directly.
