Broken access control is a web application vulnerability in which an application fails to enforce authorization rules, so a logged-in user can view, change or delete data, or use functions, that belong to someone else or to a higher-privilege role. It is number one in the OWASP Top 10 because the checks are easy to forget and the impact is direct access to other people's data.
Key takeaways
- Authentication proves who you are; authorization decides what you may do — broken access control is a failure of the second check.
- The most common patterns are IDOR, privilege escalation, missing API checks and JWT tampering.
- Fix it server-side with deny-by-default rules, record-ownership checks and access-control tests.
A user logs in with the right password, then changes one number in the web address — and suddenly sees another customer's invoices. Nothing was hacked. No password was guessed. The app simply never asked whether this user was allowed to see that record. That is broken access control.
What is broken access control?
Broken access control is a vulnerability in which an application fails to enforce the rules about what an authenticated user may do. The user is logged in, but the app lets them read, change or delete data, or run functions, that belong to someone else or to a more powerful role.
OWASP defines it plainly: access control enforces policy so that users cannot act outside their intended permissions, and failures typically lead to unauthorized disclosure, modification or destruction of data, or performing a business function outside the user's limits. The full list of failure patterns is in OWASP's broken access controls guidance.
The key point is that the attacker is already inside. This is not about breaking in. It is about what the app allows after login, which is why it is so easy to miss during development and so damaging when it is found.
Broken access control vs broken authentication: what's the difference?
Authentication answers "who are you?" and authorization answers "what are you allowed to do?" Broken authentication means an attacker can pretend to be someone else. Broken access control means a real, logged-in user can do things they should not be allowed to do.
The two are often confused because both end with the wrong person seeing the wrong data. The distinction matters because the fixes are different: stronger passwords and MFA fix authentication, while server-side permission checks fix access control.
| Broken authentication | Broken access control | |
|---|---|---|
| Question it breaks | Who are you? | What may you do? |
| Attacker state | Not logged in, or logged in as someone else | Logged in as themselves |
| Typical flaw | Weak passwords, no MFA, session hijacking | Missing permission check, IDOR, unchecked API method |
| Example | Guessing an admin password | A customer viewing another customer's order by changing its ID |
| Fix | Strong credentials, MFA, session management | Server-side authorization, deny by default, ownership checks |
An attacker needs no stolen credentials to exploit broken access control. A free account, a trial signup or a low-privilege employee account is enough, which is why the flaw shows up in applications that otherwise have solid login security.
What are the main types of broken access control?
OWASP groups the common failures into a handful of patterns. Most real incidents are one of these, or a combination of two.
Insecure direct object references (IDOR)
The app exposes a record by a predictable identifier, such as /account?acct=4822, and trusts the value the user sends. Change the number and you get someone else's account. OWASP's own example scenario is exactly this: an application uses unverified data in a database call, and the attacker modifies the account parameter to send whatever account number they want.
Vertical privilege escalation
A standard user gains the powers of a higher role. The classic case is an admin page or admin API endpoint that the interface hides from normal users but the server never protects. Typing the URL, or calling the endpoint directly, works.
Horizontal privilege escalation
A user reaches another user's data at the same privilege level. Two customers, two patients, two employees: the app checks that the requester is logged in, but never checks that the record belongs to them.
Missing access controls on APIs
An API checks permissions for GET requests but not for POST, PUT or DELETE on the same resource. The web interface never offers the delete button to a normal user, but the API endpoint accepts the call anyway.
Metadata and token manipulation
The app trusts data the user can change: a JSON Web Token, a cookie or a hidden form field that carries a role or user ID. Replaying or editing the token elevates privileges. You can inspect what a token actually contains with our free JWT decoder.
Force browsing and CORS misconfiguration
Force browsing means going straight to an authenticated or privileged page as an unauthenticated user, or to a privileged page as a standard user. A misconfigured CORS policy has a similar effect for APIs, letting an untrusted origin call them from a browser.
What does a broken access control attack look like?
The attack is usually quiet and manual. There is no malware and no brute force, just a curious user and a browser address bar.
The same pattern works through APIs. An attacker watches the requests their own browser makes, replays one with a different user ID, and reads the response. Automated tools make this fast: they enumerate IDs, roles and endpoints, and log every request that returns data the account should not see.
The damage scales with the data. Invoices, medical records, HR files, messages and payment details are all commonly exposed this way, and the attacker leaves almost no trace because every request looks like normal use of the app.
How common is broken access control?
It is the most common serious web application risk OWASP tracks. In the OWASP Top 10:2021, broken access control ranked first, with 94% of tested applications showing some form of access control weakness, across 318,487 recorded occurrences and 34 mapped weaknesses.
It stayed at number one in the OWASP Top 10:2025, which mapped 40 weaknesses to the category. The persistence is the story: this is not a new bug class, it is a design habit that keeps reappearing in new applications and APIs.
The cost of getting it wrong is not theoretical. IBM's Cost of a Data Breach Report 2025 found that 97% of organizations that suffered a security incident involving an AI model or application lacked proper access controls. Weak authorization is also a major reason breaches are expensive: the average breach in financial services cost $5.56 million in 2025, against a global average of $4.44 million.
How do you prevent broken access control?
OWASP's prevention guidance is short and strict, and every item exists because teams keep getting it wrong. The theme is simple: enforce authorization on the server, in one place, for every request. The NIST Cybersecurity Framework makes the same point at program level, placing access control inside its Protect function.
Enforce checks server-side only
Access control is only effective in trusted server-side code or a server-side API, where the attacker cannot modify the check or the metadata. Anything enforced in JavaScript, in a hidden form field or in the user interface is not a control; it is a suggestion.
Deny by default
Except for public resources, deny access by default. A new page, endpoint or feature should be unreachable until someone deliberately grants access to a role. The opposite default — open until someone remembers to lock it — is how admin endpoints ship unprotected.
Use one mechanism, everywhere
Implement access control mechanisms once and reuse them throughout the application. When every team writes its own permission check, some endpoints get none. A single, central check also makes it possible to audit and test coverage.
Enforce record ownership
Model access controls should enforce record ownership rather than accepting that a user can create, read, update or delete any record. Every request that names a record must answer two questions: is the user logged in, and does this record belong to them or their role?
Log failures and limit abuse
Log access control failures and alert administrators when appropriate, for example on repeated failures. Rate-limit API and controller access to minimize the harm from automated tools that enumerate IDs and endpoints.
How do you test for broken access control?
Testing is mostly a matter of trying the obvious. Log in as a low-privilege user and attempt everything a higher role can do: visit admin URLs, call API endpoints with other users' IDs, change IDs in requests, and try every HTTP method on each resource.
Developers and QA staff should include functional access-control unit and integration tests, as OWASP recommends. The test matrix is simple: every role against every endpoint and every object, expecting a denial where access is not granted. Automated scanners help, but they cannot know your business rules — only a human can say which customer should see which invoice.
Also test the less visible paths: file downloads, exports, password-reset flows, and background actions such as scheduled reports. A common miss is an export endpoint that checks permissions on the web page but not on the download itself.
For a wider starting point, our small business cybersecurity checklist covers access control alongside backups, updates and device security.
Attackers often combine a phished low-privilege account with an access-control flaw, so it is worth reading our guide to what spear phishing is alongside this one.
The bottom line
Broken access control is the top OWASP risk because it is easy to create and hard to notice: the app works, the login works, and the missing check is invisible until someone looks for it. The fix is a discipline, not a product — server-side checks, deny by default, ownership on every record.
Start with one exercise: log in as your least-privileged user and try to reach everything. Whatever you can reach that you should not is your next fix. You can check the security headers on your own site in seconds with our free security headers checker.
Frequently asked questions
What is broken access control in simple terms?
It means a website or app lets a logged-in user do something they should not be allowed to do, such as viewing another customer's account by changing a number in a web address, or reaching an admin page by typing its URL directly. The app checked the password but never checked the permission.
What is the difference between broken access control and broken authentication?
Broken authentication is about proving identity: weak passwords, session hijacking or missing multi-factor authentication. Broken access control is about permissions after login: the user is who they claim to be, but the app lets them act outside their role. An attacker can be fully authenticated and still exploit broken access control.
What is an IDOR vulnerability?
IDOR stands for insecure direct object reference. It happens when an app uses a predictable identifier, such as an account number in a URL, and does not check that the logged-in user owns that record. Changing the number gives access to someone else's data. It is one of the most common forms of broken access control.
Is broken access control the same as privilege escalation?
Privilege escalation is one result of broken access control, not the whole category. Vertical escalation means a normal user gains admin powers; horizontal escalation means a user reaches another user's data at the same level. Both are caused by missing or faulty authorization checks.
How do you fix broken access control?
Enforce every authorization check on the server, deny access by default, check record ownership on every request, use one central access-control mechanism, log failed access attempts, and test authorization for every role and every endpoint, including APIs.
Can broken access control affect APIs?
Yes, and APIs are a frequent target. A common flaw is an API that checks permissions for GET requests but not for POST, PUT or DELETE on the same resource. Attackers call the unprotected method directly, bypassing the web interface entirely.
Does multi-factor authentication stop broken access control?
No. Multi-factor authentication strengthens authentication, but it does nothing for authorization. A user who logs in with MFA and then changes an account ID in a URL can still reach another user's data if the app never checks ownership.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against OWASP's Top 10 broken access control guidance, the OWASP Top 10:2021 data, and NIST's Cybersecurity Framework.
How we write and fact-check →