Part 01
Foundations
Skip the foundations and you will spend all year hunting basic numeric IDORs. Understand how authorization is supposed to work, and why modern apps keep dropping it between layers, and you start spotting multi-tenant and privilege-escalation bugs that pay five figures.
What is Broken Access Control?
Section titled “What is Broken Access Control?”Access Control (also called authorization) is the enforcement layer that decides who can perform what action on which resource. It sits after authentication. Authentication answers “who are you?”, access control answers “are you allowed to do this?”
A Broken Access Control vulnerability exists whenever that enforcement is missing, incomplete, inconsistent, or bypassable. In practice it manifests as:
- A normal user reading or modifying another user’s data
- A user invoking admin functionality without being an admin
- An anonymous request reaching an endpoint that should require login
- A tenant in a multi-tenant app reading data belonging to a different tenant
- An action that is restricted via the UI but never actually checked on the server
This is the most important sentence in the guide. Access control must be enforced on the server, for every request, for every resource and field, against the authenticated principal. Client-supplied trust signals do not count. Every BAC bug, without exception, is a violation of that sentence.
OWASP Top 10: A01 from 2021 to 2025
Section titled “OWASP Top 10: A01 from 2021 to 2025”Broken Access Control has been ranked #1 in the OWASP Top 10 since 2021, and A01:2025 keeps it there. It isn’t close, and the 2025 refresh made the picture larger, not smaller. Compare the two data calls side by side:
| OWASP A01 data call | Top 10 · 2021 | Top 10 · 2025 |
|---|---|---|
| CWEs mapped into the category | 34 | 40 |
| Max test coverage (share of dataset tested for BAC) | 94.55% | 100% |
| Average incidence rate (per application) | 3.81% | 3.74% |
| Total occurrences in the data set | 318,487 | 1,839,701 |
| Mapped CVEs | 19,013 | 32,654 |
Read those two rates carefully, they are the two most mis-quoted numbers in AppSec. Coverage (94-100%) means almost every application in OWASP’s data call was tested for at least one access-control weakness; incidence (~3.8%) is the average rate at which those tests actually fired. In short, BAC is both the most-tested-for weakness family and one of the most frequently found. 40 CWEs now roll up into it (from 34), which makes it the broadest category in the Top 10 by a wide margin.
For a bug bounty hunter, this is the single highest-EV category to specialize in. Every app has authorization somewhere, and most get part of it wrong. The impact is almost always demonstrable in business terms: data exposure, account takeover, financial loss. That means high CVSS and big payouts. The 2025 edition also sharpens where the frontier is: API authorization, multi-tenant isolation, OAuth/OIDC scope handling, and microservice trust boundaries.
Access Control Models You’ll Encounter
Section titled “Access Control Models You’ll Encounter”Targets implement one or more of these models. Knowing which one a target uses tells you where to push.
| Model | How it works | Common BAC failures |
|---|---|---|
| DAC Discretionary |
Resource owner sets permissions (file ACLs, share links). | Stale shares, predictable share tokens, owner-only checks that ignore “viewer” roles. |
| MAC Mandatory |
System enforces fixed policy based on labels (rare in web apps; common in gov/mil). | Label downgrade, classification confusion, side-channel inference. |
| RBAC Role-Based |
Users get roles; roles get permissions. Most common in SaaS. | Role assigned client-side, role parameter accepted from request, missing role checks on individual endpoints. |
| ABAC Attribute-Based |
Policy engine evaluates attributes (user.dept == doc.dept). Common in enterprise. | Policy bypass via missing attributes, attribute injection, default-allow on unknown attributes. |
| ReBAC Relationship-Based |
Auth based on a graph of relationships (Google Zanzibar, Auth0 FGA, SpiceDB, OpenFGA). Powers Twitter, GitHub, Figma. | Stale relations, cache poisoning, missing checks on nested resources, “anyone on the team” overly permissive. |
| PBAC Policy-Based |
A dedicated engine evaluates declarative policy (Open Policy Agent / Rego, AWS Cedar, Casbin) at a central decision point. Increasingly the “correct” modern answer. | Policy/enforcement gap (PDP says deny, PEP never asks), default-allow rules, policy that checks role but not resource, un-evaluated new endpoints. |
The industry trend since ~2020 has been to pull authorization out of scattered if-statements and into a central policy engine (OPA, Cedar, SpiceDB/Zanzibar). That’s good for defenders, but it creates a specific, high-value bug class for hunters: the enforcement gap. A perfect policy is worthless if a code path never asks the engine. New endpoints, batch operations, GraphQL resolvers, background workers, and admin tooling are exactly the places teams forget to wire in the policy check. When a target advertises “fine-grained authz” or “Zanzibar-style permissions,” don’t assume it’s airtight, assume the model is sound and go hunting for the request path that skipped it.
The Hunter’s Mindset
Section titled “The Hunter’s Mindset”BAC hunting is fundamentally logical, not technical. You’re not crafting an exploit payload, you’re testing assumptions the developer made. Internalize these heuristics:
1 · Two accounts, always
Every BAC engagement begins by creating at least two test accounts. Most authorization bugs are invisible from a single user's perspective — they only appear when you replay account B's request as account A.
2 · Trust nothing the client sends
If the request contains user_id, role, tenant, is_admin, or anything else that describes identity, the server almost certainly trusts at least one of them more than it should.
3 · Front-end ≠ back-end
UI restrictions (hidden buttons, disabled fields, role gates) are convenience features. Test the underlying endpoint directly with a low-privileged session.
4 · One missing check is enough
Authorization needs to be perfect everywhere; the attacker needs one gap. Bugs cluster at the edges: new endpoints, batch operations, internal APIs, admin features, exports, search.
5 · Read the JavaScript
Modern SPAs leak the entire endpoint inventory in their bundles. Half of "hidden" admin functionality is one grep away.
6 · Think like the product manager
Every BAC bug maps to a business workflow. Ask: "What would a malicious user want to do here?" then test whether the app prevents it.
7 · Deprecated ≠ deleted
Old API versions, legacy hostnames, and "sunset" endpoints usually predate the current authorization model — and nobody re-audited them. /api/v1/ often lacks the checks /api/v2/ added. The oldest code is frequently the least guarded.
8 · Test the boundary, not the role
"Am I an admin?" is the wrong question the app often asks. The right one is "am I allowed on this specific object?" Being a moderator somewhere is not being a moderator here. Always test the resource-scoped boundary, not just role membership.
Hands-on lab drill
Section titled “Hands-on lab drill”You are testing a multi-tenant SaaS app with two test workspaces: Org A (org_104, where you are an admin) and Org B (org_209, where you have no membership). While inviting a member in Org A, you capture this request:
POST /api/v2/members/invite HTTP/2 Host: saas.target.com Authorization: Bearer <org_104_admin_jwt> X-Organization-Id: org_104 Content-Type: application/json{“email”: “attacker@test.local”, “role”: “admin”}
role: "admin", then reads the target workspace from X-Organization-Id without checking whether you belong to that org. Changing the header to org_209 invites your account as an admin in Org B. Read Authorization Matrix to map every tenant boundary systematically.caller.memberships includes both the requested org_id and the required role for that specific organization.Related across the field guides
Section titled “Related across the field guides”- Start with object-level ownership swaps in IDOR Hunting.
- Pair access-control testing with Recon Atlas: Vulnerability Hunting.
- See OAuth Testing and Business Logic for end-to-end chains.
Open local graph around this page
Linked from here
Links out to
- Standards Map: What to Cite in a Report↗ Bug Hunting
- What IDOR Actually Is↗ IDOR Hunting
- Access control testing↗ Recon Atlas
- OAuth 2.0 Testing Checklist↗ Bug Hunting
- Business Logic: Draw the Map First↗ Bug Hunting
- Broken Authentication & Account TakeoverBroken Access Control
- The Password Reset FlowBroken Access Control
- 2FA/MFABroken Access Control
- Login ItselfBroken Access Control
- OAuth & Social LoginBroken Access Control
- The Session LayerBroken Access Control
- Hostile Recovery Sub-FlowsBroken Access Control
Broken Access ControlFor authorized security research only: bug bounty programs, your own systems, or scoped engagements with written permission.