Broken Access Control & Authorization

Broken Access Control & Authorization

Broken access control is the number-one risk in the OWASP Top 10 because it is both common and high impact, and because scanners rarely catch it. The flaw is not a bad string or a known CVE; it is a missing or inconsistent authorization check in the application's own logic. These checks have to be enforced on the server for every object and every action, no matter what the UI shows.

Insecure Direct Object Reference (IDOR / BOLA)

CWE-639OWASP API1:2023OWASP A01:2021
What it is
An endpoint accepts an object id (an order, an invoice, a user) and returns or modifies it without checking that the caller owns or may access that object.
Why it matters
One authenticated user can read or change another user's data by changing an id in the request. This is the single most frequent cause of real-world data breaches.
How to check
For every endpoint that takes an id, confirm the server verifies the caller is authorized for that specific object, not just that they are logged in.

Missing Function-Level Authorization

CWE-285OWASP API5:2023
What it is
A privileged endpoint (admin action, internal API, destructive operation) is reachable without a server-side role or permission check.
Why it matters
A standard user, or sometimes an anonymous caller, can invoke actions meant only for admins or staff.
How to check
Enumerate privileged routes and confirm each enforces the required role on the server, not only by hiding the button in the UI.

Privilege Escalation

CWE-269OWASP A01:2021
What it is
A user can raise their own privileges, horizontally (act as another user) or vertically (become an admin), through a flaw in how roles are assigned or checked.
Why it matters
Account takeover, access to every tenant's data, or full administrative control.
How to check
Verify role assignment cannot be influenced by client input and that sensitive role transitions are re-authorized server-side.

Mass Assignment / Over-Posting

CWE-915OWASP API6:2023
What it is
The server binds a whole request body to a model, letting a caller set fields they should never control, such as role, price, ownerId, or isAdmin.
Why it matters
A user upgrades their own role or changes a price simply by adding a field to the request.
How to check
Allow-list the fields each endpoint accepts rather than binding the entire payload.

Tenant Isolation Failure

CWE-639OWASP API1:2023
What it is
In a multi-tenant system, a query or cache is not scoped to the caller's tenant, so one customer can reach another customer's data.
Why it matters
Cross-tenant data exposure, the most serious failure mode for a SaaS product.
How to check
Confirm every data access is scoped by tenant at the server, and test with two tenants that one cannot see the other.

Paywall & Entitlement Bypass

CWE-602OWASP A04:2021
What it is
A paid feature or gated data is enforced only in the browser, while the server returns it to any caller who asks directly.
Why it matters
Users obtain paid features or protected data for free by calling the API the UI hides.
How to check
Confirm the server independently enforces every entitlement; client-side gating is presentation, not security.

In-depth guides

Related coverage

Check your code for broken access control & authorization

Tethlyn Audit checks your codebase for broken access control & authorization and more, then ranks each finding by real exploitability and data sensitivity.

See Tethlyn Audit