Skip to content
Broken Access Control: OWASP A01, IDOR, and Detection Gaps (July 2026)

Broken Access Control: OWASP A01, IDOR, and Detection Gaps (July 2026)

Gecko Security15 min read
On this page

Broken access control is the most common vulnerability class in existence, which makes it easy to assume it's also the most understood. It's not. The OWASP A01 ranking covers dozens of distinct failure modes, and most of them produce no errors, no crashes, and no signal that anything is wrong. If you're trying to get a clear picture of where BAC vulnerability actually hides in your application, and why it's so hard to catch before someone else finds it first, this is where to start.

TLDR:

  • Broken access control is OWASP A01 because it appeared in 100% of ~500,000 applications tested, more than any other vulnerability class.
  • BAC covers IDOR, privilege escalation, forced browsing, and missing API method controls: all failures to enforce authorization at the point where it matters.
  • The average breach costs $4.88 million (IBM 2025), and the mean time to identify a breach involving unauthorized access is 194 days.
  • SAST tools cannot detect missing authorization checks because there is no syntactic anomaly; the flaw is an absent call, not a malformed one.
  • Gecko Security found 30+ CVEs in this class across 8 months by tracing call chains across service boundaries, including CVE-2025-51479 in ONYX and a system-wide access control flaw in Cal.com.

What Is Broken Access Control#

Broken access control happens when an application fails to properly enforce who can do what. A user accesses a resource, performs an action, or reads data they have no business touching, and the application lets them. The authorization check either never runs, runs on the wrong input, or runs correctly but gets bypassed through a path the developer didn't anticipate.

OWASP ranks it A01 in the Top 10, and the data behind that ranking is stark: broken access control appeared in 100% of applications tested across a sample of roughly 500,000 apps.

The category covers a wide range of failure modes, from IDOR (insecure direct object references) to privilege escalation to missing function-level access control. What unites them is a gap between what the application is supposed to allow and what it actually allows.

Why Broken Access Control Is OWASP A01#

OWASP ranks broken access control at the top of its Top 10 list because the data leaves no room for debate. Across roughly 500,000 applications tested, access control failures appeared more often than any other vulnerability class. No other category came close.

The ranking reflects how authorization failures actually behave in production. They are rarely loud. They don't crash servers or trigger obvious errors. An attacker who finds a missing access check gets quiet, persistent access to data or functionality they were never supposed to reach.

How OWASP Defines the Category#

OWASP A01 groups several distinct failure modes under one label:

  • Accessing another user's account or data by manipulating a resource identifier, such as changing an order ID in a URL to retrieve someone else's record (a class of flaw known as IDOR)
  • Reaching administrative endpoints or functionality without holding the required role, because the server never verified the caller's permissions
  • Bypassing access checks by directly requesting a resource at a known path, skipping the application flow that would have enforced the restriction
  • Viewing or modifying records owned by other users by manipulating fields the application trusts from the client
  • Escalating privileges within a session, either vertically (gaining admin rights from a standard account) or horizontally (acting as a peer account the caller does not own)

What connects all of these is that the application knew what the user was allowed to do and failed to check it at the point where it mattered, a pattern at the heart of business logic as AppSec's unsolved problem.

How Access Control Is Supposed to Work#

Access control is the set of rules that decides which users can take which actions on which resources. In a well-designed system, every request goes through an authorization check before any sensitive operation executes. The server verifies identity, checks whether that identity holds the required permission, and either proceeds or rejects the request.

Three models do most of the work in practice:

  • Role-based access control (RBAC) assigns permissions to roles, then assigns roles to users. A user inherits whatever their role allows and nothing more.
  • Attribute-based access control (ABAC) applies policies against attributes of the user, the resource, and the environment at request time, allowing finer-grained decisions.
  • Mandatory access control (MAC) enforces permissions at the system level, outside user or application control entirely.

The assumption underlying all three is that enforcement happens server-side, consistently, on every request path.

Where the Model Breaks Down#

The gap between how access control is designed and how it gets implemented is where BAC vulnerabilities live. Authorization logic gets added incrementally across sprints, spread across middleware, controllers, and service layers with no single enforcement point. A check present on one route is missing on another that reaches the same data. An admin-only function is hidden from the UI but never restricted at the API layer, which is precisely why static analysis struggles with business logic vulnerabilities.

The result is that the policy exists on paper while the enforcement has holes throughout the codebase.

Types of Broken Access Control Vulnerabilities#

Broken access control covers a wide range of implementation failures, each exploitable in different ways depending on the application's architecture and trust model.

Vulnerability TypeWhat FailsTypical Attack VectorEscalation Direction
IDOROwnership check missing on object retrievalSubstitute another user's resource ID in URL, body, or headerHorizontal
Horizontal privilege escalationPeer-user isolation not enforcedSwap account identifier (e.g., ?account_id=1001 → ?account_id=1002)Horizontal
Vertical privilege escalationRole check absent on privileged endpointDirectly request admin path (e.g., /admin/users) from a standard accountVertical
Forced browsingUnlisted endpoints left publicly accessibleRequest known-path resources (admin panels, config exports, backup files) directlyVertical
Function-level access control failureAuthorization exists in UI but not in API handlerCall hidden endpoints directly via network inspection or client-side JSVertical
Missing API method controlsGET is protected; PUT/DELETE/PATCH on same path is notChange HTTP method on a readable resource to modify or delete itHorizontal or Vertical

Horizontal vs. Vertical Privilege Escalation#

Two distinct failure patterns appear repeatedly across web applications.

  • Vertical privilege escalation happens when a user gains access to functionality reserved for a higher privilege level, such as a regular user reaching admin endpoints by directly requesting /admin/users without any role check in the handler.
  • Horizontal privilege escalation happens when a user accesses resources belonging to another user at the same privilege level, typically by manipulating an identifier in a request parameter, like changing ?account_id=1001 to ?account_id=1002 and receiving another user's data.

Insecure Direct Object References (IDOR)#

IDOR is the most common form of broken access control in production systems. The vulnerability exists when an application exposes a reference to an internal object (a database row ID, a filename, a UUID) and fails to verify that the requesting user has permission to access that object. The check is either missing entirely or only exists on the page that displays the link, not on the API endpoint that serves the data.

Path Traversal and Forced Browsing#

Path traversal attacks manipulate file path inputs to access files outside the intended directory, using sequences like ../../etc/passwd to escape application boundaries. Forced browsing targets URLs that the application never links to publicly but leaves fully accessible: backup files, admin panels, configuration exports, or older API versions that predate the current authorization layer.

Function-Level Access Control Failures#

Many applications control access at the UI layer by hiding buttons or menu items, but leave the underlying API endpoints unprotected. An attacker who inspects network requests or reads client-side JavaScript can find and call those endpoints directly, bypassing the UI entirely. This pattern is widespread in single-page applications where route guards exist in the frontend but authorization logic was never implemented in the backend handlers.

Missing Access Controls on API Methods#

REST APIs often implement GET endpoint authorization while leaving PUT, DELETE, or PATCH handlers on the same resource path unprotected. A user who can read a resource can modify or delete it simply by changing the HTTP method.

Real-World Broken Access Control Breaches#

Three breaches show how broken access control moves from a theoretical category into measurable business damage.

In 2022, Australian telecom Optus suffered a breach when an API endpoint was accidentally exposed to the public internet without any authentication. Attackers incremented customer record identifiers to extract nearly 10 million records, including names, dates of birth, passport numbers, and contact details. The access control check was absent entirely: the endpoint had never required authentication.

Microsoft's Power Apps service exposed tenant data across organizational boundaries in 2021 because API calls accepted user-supplied tenant identifiers without verifying the caller belonged to that tenant. Vertical access control passed while horizontal isolation failed entirely. The issue was publicly disclosed by UpGuard in August 2021 and Microsoft subsequently changed the default table permissions model.

Facebook's 2018 "View As" feature contained a broken access control chain: a video uploader generated access tokens scoped to the wrong user context, and those tokens granted full account access. 50 million accounts were exposed before the feature was disabled.

The Business Impact of Broken Access Control#

The financial and reputational consequences of broken access control failures are well-documented across industries. The 2025 IBM Cost of a Data Breach Report puts the average breach cost at $4.88 million, and unauthorized access to sensitive data (the most common outcome of BAC exploitation) accounts for a large share of that figure.

Regulatory exposure compounds the damage. GDPR fines can reach €20 million or 4% of global annual turnover, whichever is higher. HIPAA penalties scale up to $1.9 million per violation category per year. When access control failures expose personal health records or payment data, these penalties apply directly.

The reputational damage is harder to quantify but often more lasting. Organizations that disclose access control breaches see measurable drops in customer trust and, in publicly traded companies, stock price. Recovery timelines routinely extend beyond the breach itself.

Where the Costs Concentrate#

Three patterns account for most of the business impact:

  • Bulk data exposure through IDOR flaws, where a single parameter change exposes records belonging to other users at scale, means one exploited endpoint can exfiltrate an entire customer database before detection.
  • Privilege escalation that reaches administrative functions gives attackers the ability to modify, delete, or exfiltrate data across the full application, beyond a single user's records.
  • API endpoint exposure, where mobile or third-party integrations bypass access checks present in the web interface, creates blind spots that standard security reviews miss entirely, gaps that automated API scanning can help surface.

Each of these produces a different legal and technical footprint, but all three share one characteristic: the window between exploitation and detection is wide. The median time to identify a breach involving unauthorized access remains over 200 days according to IBM's research, giving attackers substantial dwell time.

Why Broken Access Control Is So Hard to Detect#

Broken access control is uniquely difficult to detect because the vulnerability rarely lives in a single place. Unlike SQL injection or buffer overflows, where the flaw is a discrete coding mistake, access control failures are often distributed across multiple layers: the API gateway, the middleware, the business logic, and the database query. A scanner that checks one layer at a time will miss the interaction between them.

See it in action.

There are a few structural reasons detection consistently fails here.

The Logic Is in the Application, Not the Protocol#

Access control decisions are made by application code, not by HTTP or TCP. A GET request to /api/orders/8821 looks syntactically identical whether the caller owns that order or not. No network-level tool or protocol analyzer can tell the difference. The authorization decision happens inside the application, and whether that decision is made correctly depends on business rules that exist nowhere in the code explicitly.

Static Analysis Cannot See Runtime State#

SAST vs DAST tools parse code and look for patterns. For access control, the relevant question is not "does this function exist" but "does this function run for this request with this caller's identity." Call graphs help, but they do not capture which branches execute under which authentication context. A check may be present in one code path and entirely absent in another, and a static scan has no way to distinguish the two without running the application.

Tests Only Cover What Engineers Think to Test#

Automated test suites and manual penetration tests are bounded by the engineer's mental model of what needs protecting. The endpoints they know about get tested. Endpoints added three sprints ago by a different team, or legacy routes left active after a refactor, often go untested. OWASP's analysis of roughly 500,000 applications found broken access control in every single one, which suggests the gap is not one of effort but of coverage, consistent with Gecko's 30+ CVEs in 8 months no other AppSec tool found.

How to Prevent Broken Access Control#

Preventing broken access control requires consistency across every layer of your application. A check that exists in the UI but not in the API, or in one service but not another, is the same as no check at all.

There are several concrete controls that reduce BAC exposure across most application architectures:

  • Default to deny: every request should fail closed unless a permission check explicitly grants access. Frameworks that require opt-in permissions per route are safer than those that require developers to remember to add restrictions.
  • Enforce authorization server-side on every request, including at session creation and login. Client-side state is attacker-controlled.
  • Use indirect object references where possible. Expose opaque identifiers that map server-side to resources, so users cannot find or guess other users' resource IDs.
  • Log authorization failures. A spike in 403s from a single account is often the earliest signal of an enumeration or privilege escalation attempt.
  • Test access controls with a dedicated low-privilege account in every automated test suite, beyond happy-path flows with an admin token.

The Role of Code Review and Static Analysis#

Manual code review finds access control bugs when reviewers know what to look for, but it does not scale across large codebases or catch bugs that span multiple services. Static analysis helps, but most SAST tools operate at the file level and cannot trace whether an authorization check in one service actually runs for a request that enters through a different service.

This is where the structural gap in conventional tooling matters. A file-level scanner can confirm a permission function exists. It cannot confirm that function is called for every code path that reaches a sensitive resource, especially across service boundaries or when authorization logic is injected at runtime.

Gecko Security reasons over a compiler-accurate semantic model of your codebase, tracing call chains across files and services to find paths where authorization is missing, conditional, or bypassable. Every finding comes with a working proof-of-concept, so teams can verify the issue is reachable before triaging it.

How to Test for Broken Access Control#

Effective broken access control testing requires going beyond automated scans. Most scanners catch obvious misconfigurations, but the logic flaws that make BAC vulnerabilities dangerous require manual analysis and a structured methodology.

Mapping the Authorization Surface#

Before testing anything, map out every resource and action in the application. For each endpoint, identify what roles or ownership conditions should restrict access. This inventory becomes your test matrix.

  • Document every API endpoint, including undocumented or legacy routes found through JavaScript bundles, mobile app traffic, or directory brute-forcing.
  • Classify each endpoint by the access control type it should enforce: role-based, ownership-based, or state-dependent.
  • Note which endpoints appear unprotected by design versus which ones rely on obscurity or client-side checks.

Core Testing Techniques#

With the surface mapped, test each restriction systematically.

  • Horizontal privilege escalation: Authenticate as one user, then request resources belonging to another by substituting identifiers (user IDs, account numbers, document GUIDs) in URLs, request bodies, and headers.
  • Vertical privilege escalation: Authenticate as a low-privilege account and attempt administrative actions directly, bypassing any UI that hides those options from non-admin roles.
  • Forced browsing: Access URLs that the application never links to from your current role, including admin panels, configuration pages, and batch export endpoints.
  • HTTP method manipulation: If GET /api/users/42 is restricted, test POST, PUT, and DELETE against the same path. Authorization logic sometimes checks the resource but not the method.
  • Parameter pollution: Supply both a legitimate and a forged parameter value (e.g., ?user_id=me&user_id=admin) and observe which value the backend processes.
  • Header-based bypasses: Test headers like X-Original-URL, X-Rewrite-URL, and X-Forwarded-For that some reverse proxy configurations use to route requests, which can override path-based access control.

Automation vs. Manual Review#

Automated tools catch known patterns: missing authentication headers, exposed admin routes returning 200, IDOR in predictable integer sequences. They miss everything that requires understanding intent, such as a state machine that should block re-submitting a completed order or a multi-tenant query that filters by a user-supplied tenant ID without server-side validation.

The practical split: run automated pentesting to eliminate the obvious gaps, then allocate manual review time to business logic, multi-step workflows, and any endpoint that handles cross-user data.

What to Look for in Code Review#

When reviewing code directly, the patterns that signal BAC risk are consistent across frameworks.

  • Authorization checks that live in the controller or route layer but are absent from service layer functions called by background jobs or internal APIs.
  • Object retrieval that uses a user-supplied identifier without verifying the retrieved object belongs to the requesting user after fetching it.
  • Role checks implemented as string comparisons against user-controlled input.
  • Feature flags or plan-tier gates enforced only on the frontend, with no corresponding server-side check on the API endpoint that performs the action.

How Gecko Security Detects Broken Access Control#

Broken access control is Gecko's primary detection target, and the reason is structural: traditional SAST tools see no syntactic anomaly when an authorization check is missing, so they report nothing. Gecko builds a compiler-accurate semantic graph across the entire codebase, traces call chains across service boundaries, and reasons about whether authorization logic is actually correct given what the application is supposed to do.

That methodology surfaced CVE-2025-51479 in ONYX, where a curator-role API accepted an unused user parameter that should have enforced permission scope but never did. It caught the broken access control in Cal.com's bookings endpoint, where any authenticated user could read or delete all bookings across the entire service. It identified CVE-2026-21894 in N8N, an authorization bypass that existing tooling missed entirely. Across 8 months of open-source research, Gecko uncovered 30+ CVEs in this vulnerability class. None had a syntactic signature a pattern-matching scanner could find.

Security teams auditing OWASP A01 coverage can start a scan at app.gecko.security or book time with the team at cal.com/geckosec/30min.

Final Thoughts on Broken Access Control and OWASP A01#

Broken access control sits at the top of the OWASP list because authorization logic is distributed, incremental, and easy to miss on the routes nobody remembers to test. The controls here (deny by default, server-side enforcement, indirect references, dedicated low-privilege test accounts) close the most common gaps. What they can't do is tell you which paths in your codebase skip the check entirely. Book a session with the team to see how Gecko traces those paths for you.

FAQ#

What is broken access control and why does OWASP rank it A01?#

Broken access control is when an application fails to enforce who can take which actions on which resources, covering everything from IDOR and privilege escalation to missing function-level checks. OWASP ranks it A01 because it appeared in 100% of roughly 500,000 applications tested, making it the most common vulnerability class by a wide margin.

Why do traditional SAST tools miss BAC vulnerabilities that Gecko Security catches?#

Traditional SAST tools parse one file at a time and match patterns against known bad code structures. A missing authorization check has no syntactic signature: there is no bad code to match, only absent code, so file-level scanners report nothing. Gecko builds a compiler-accurate semantic graph across the entire codebase, traces call chains across service boundaries, and reasons about whether authorization logic is correct given what the application is supposed to do. That is the architectural difference behind findings like CVE-2025-51479 in ONYX and the Cal.com bookings endpoint, both of which existing tooling missed entirely.

How do I test for horizontal privilege escalation in a REST API?#

Authenticate as one user, then substitute another user's resource identifier (a user ID, account number, or document GUID) in URLs, request bodies, and headers. If the backend returns that user's data without verifying ownership, the access control check is either missing or runs only on the display layer. Extend this by testing every HTTP method on the same path; authorization logic often covers GET but leaves PUT, DELETE, or PATCH unprotected on the same resource.

Gecko Security vs. Semgrep for detecting broken access control across microservices?#

Semgrep operates at the file level and cannot trace call chains across service boundaries, so an authorization check at the API gateway that never runs at the downstream data service produces no finding. Gecko's semantic graph extends across repositories and service boundaries, following execution paths into shared libraries and microservices to find exactly those gaps. For distributed architectures where the BAC vulnerability spans two or more services, Semgrep has a structural ceiling Gecko does not share.

Can I find broken access control vulnerabilities without a deployed staging environment?#

Yes. Gecko performs static analysis on source code without requiring a running application or compiled build. It ingests API contracts (OpenAPI, protobuf, AsyncAPI), traces call chains through the codebase, and generates working proof-of-concept exploits, all before deployment. This removes the setup overhead of DAST (crawler configuration, authenticated endpoint setup, staging infrastructure) while covering deep-link workflows and error-handling branches that DAST crawlers routinely miss.

Gecko Security

Frequently asked questions

Related content

The latest news, technologies, and resources from our team.

Subscribe to the Gecko newsletter

Occasional updates, new content, and insights. No spam; unsubscribe anytime.

We use your email only to send you our newsletter. See our privacy policy for how we handle your data. You can unsubscribe at any time.