What Is Broken Access Control, and How Can You Prevent It? (Explained Clearly) - Security+
Learn what a broken access control vulnerability is, how it can expose data or grant extra privileges, and how to spot and prevent authorization failures.
👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn what a broken access control vulnerability is, how it can expose data or lead to privilege escalation even when login works, and how to spot and prevent missing authorization checks.
Chapters:
0:00 Intro
0:15 What is broken access control?
0:56 How does broken access control lead to privilege escalation?
1:43 What’s the difference between object-level and function-level authorization?
2:47 How do you prevent and detect broken access control?
3:52 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
- A valid login doesn’t guarantee authorized access. Broken access control lets someone view data or perform an action that permissions should block. OWASP ranks it first in its 2025 Web Application Top 10.
- Broken access control is the flaw; privilege escalation is one possible result. Horizontal escalation crosses a boundary between peers, while vertical escalation grants a capability reserved for a higher-privileged role.
- Identify what the application failed to check: the specific record, operation, field, tenant, or workflow condition. Hard-to-guess IDs don’t replace ownership checks. See the OWASP API Security Top 10.
- Deny by default, grant least privilege, and enforce authorization on the server for every request. Check who is acting, what they want to do, which resource is involved, and which conditions apply. See the OWASP Authorization Cheat Sheet.
- Verify outcomes, not just HTTP status codes. Use a permissions matrix to confirm denied reads expose no data, denied writes change nothing, and revoked access stays blocked. Audit successful sensitive actions as well as denials.
- 👉 Try Pluralsight for guided security labs and feedback, plus assessments and practice exams to focus your Security+ prep.
A broken access control vulnerability occurs when an application lets someone view data or perform an action that its permissions should block. A customer can sign in with their own account and still see another customer’s invoice. No password was stolen: the application correctly identified the customer but failed to check whether they were allowed to see that invoice.
OWASP ranks broken access control first in its 2025 Web Application Top 10. That ranking highlights the importance of the category, not the severity of every individual flaw.
What is broken access control?
Access control enforces . It can fail because a permission check is missing, checks the wrong facts, or enforces a policy that grants more access than intended.
FAQ
Quick answers to the questions people usually ask about this topic.
How serious is a broken access control vulnerability?
How serious is a broken access control vulnerability?
Severity depends on who can reach the affected feature, how sensitive the data is, what actions are possible, and how many records or accounts are affected. A flaw that lets any customer export invoices across multiple organizations generally has a greater impact than one that exposes a single low-sensitivity field. OWASP’s Top 10 ranking reflects the importance of the category, not the severity of an individual finding.
Is role-based access control enough to protect customer records?
Is role-based access control enough to protect customer records?
Not on its own. A role can grant permission to use a feature, such as viewing invoices, but it usually does not establish which invoices a particular customer may view. The application should also check ownership, account membership, or another rule that ties the caller to the specific record. See the OWASP Authorization Cheat Sheet for guidance.
Can a valid access token carry permissions that are no longer current?
Can a valid access token carry permissions that are no longer current?
Yes. If a token contains role or membership claims and the server relies on those claims until the token expires, a permission change may not take effect immediately. Short token lifetimes can limit that window, but access that must end immediately requires a way to enforce revocation or check current permissions.
Should an API return 401, 403, or 404 when access is denied?
Should an API return 401, 403, or 404 when access is denied?
Use 401 Unauthorized when valid authentication credentials are missing and 403 Forbidden when the caller is authenticated but lacks permission. An API may use 404 Not Found instead of 403 to avoid revealing that a protected resource exists. The status code communicates the decision; it does not enforce it. A denied request must not return protected data or make the requested change.
How can I practice access control concepts for Security+ after watching the free series?
How can I practice access control concepts for Security+ after watching the free series?
Use a practice scenario to identify the actor, action, resource, and conditions, then explain which permission check should allow or deny access. If you want guided practice and feedback, try Pluralsight. Its labs let you apply the concepts, while assessments and practice exams help you decide what to review next.
Comments
Add a comment...Pinned by @jaymayor
@jaymayor👉 Master your Security+ skills with Pluralsight here: https://www.jaymayor.com/go/security-plus
Some links may earn a commission. Thanks for your support.
