Course contentsShow
← Security
Lesson 803 of 3,05217. Web Security - Authorization and Access ControlFree lesson

Broken Access Control Overview

Understanding how authorization failures allow users to access resources or perform actions beyond their privileges.

Broken Access Control Overview

You'll learn: What happens when authorization checks fail and how attackers exploit these gaps to access resources they shouldn't.

What Is Broken Access Control?

Broken Access Control occurs when an application fails to properly enforce who can do what. Even though you've learned about access control models like RBAC, DAC, and ABAC, implementing them incorrectly—or not at all—creates vulnerabilities. Users end up accessing data, performing actions, or viewing pages that should be restricted to others or to higher-privilege roles.

Think of it like a hospital bracelet system: patients, nurses, and doctors all wear different colored bracelets granting different access levels. Broken access control is like forgetting to check the bracelet color at certain doors—a patient walks into the pharmacy and helps themselves to medications meant only for authorized staff.

Common Manifestations

Vertical privilege escalation: A regular user performs admin functions (like deleting any account).

Horizontal privilege escalation: One user accesses another user's data (viewing someone else's medical records or bank statements).

Missing authorization checks: Protecting the UI button but forgetting to protect the actual API endpoint—attackers simply call the endpoint directly.

Insecure Direct Object References (IDOR): Changing a URL parameter from user_id=123 to user_id=124 and suddenly seeing another person's profile.

Why It Matters

Broken Access Control consistently ranks as the #1 web application security risk. Once authenticated, attackers probe for weaknesses in authorization—the boundary between what you're allowed to do versus what the system lets you do.

Key Takeaway: Broken Access Control means authorization is missing, inconsistent, or bypassable—allowing users to exceed their intended privileges and access resources or actions meant for others or higher roles.