Why Do Scanners Miss Broken Object Level Authorization (BOLA), the #1 API Threat?
Broken object level authorization (BOLA) lets a logged-in user read, change, or delete another user’s data by swapping an object ID in an API request. Scanners miss BOLA because the attack request is valid, the response returns 200 OK, and spotting the flaw requires knowing which user owns which object. Testing for BOLA needs at least two accounts and an ownership map.
In November 2018, KrebsOnSecurity reported that a weakness in a US Postal Service API let any logged-in usps.com user view account details for some 60 million other users. The exposed fields included email addresses, usernames, account numbers, street addresses, and phone numbers, and the same API let any user request account changes for any other user. A researcher had reported the problem more than a year earlier. The attacker needed nothing more than a free account and the ability to edit one parameter.
That incident is a textbook case of BOLA, and the pattern has not faded. OWASP ranked BOLA first in its API Security Top 10 in 2019 and kept it there in the 2023 edition. This guide explains what BOLA is, why automated scanners keep missing it, and how security teams can test for it before an attacker does.
Table of Contents
What Is Broken Object Level Authorization (BOLA)?
Broken object level authorization is a missing or incomplete check on whether the current user may act on a specific object. OWASP’s API1:2023 entry says every API endpoint that receives an object ID and performs an action on that object should verify that the logged-in user has permission for that action on that object. When the endpoint skips that check, any authenticated user can reach other users’ records by changing the ID.
BOLA sits close to two neighboring terms. Insecure direct object reference (IDOR), which MITRE tracks as CWE-639, authorization bypass through a user-controlled key, describes the most common way attackers exploit BOLA: guessing or changing a reference in the request. PortSwigger’s guide to IDOR vulnerabilities covers the classic web examples. Broken function level authorization (BFLA), OWASP’s API5:2023, covers a different gap, where a user reaches an endpoint they should never call at all, such as an admin function. BOLA concerns the right endpoint used against the wrong object.
Recommended read: If you or your team are planning to brief leadership on authorization risk, this article on the anatomy of an authorization bypass is a great place to start.
How Common Is BOLA in 2026?
OWASP describes BOLA as extremely common in API-based applications, and current data backs that up. BreachLock’s 2026 Penetration Testing Intelligence Report, which analyzed nearly 5,000 penetration tests and more than 531,000 findings, found that BOLA accounted for 28% of API findings, the largest share of any OWASP API category. 42Crunch’s State of API Security 2026 report, which reviewed 200 real-world API vulnerabilities reported in 2024 and 2025, placed BOLA joint second at 12.5%, level with broken object property level authorization and behind broken authentication at 23.5%, according to Nordic APIs’ analysis of the report.
The wider API picture explains why these flaws matter. Wallarm’s 2026 API ThreatStats Report found that 43% of the vulnerabilities CISA added to its Known Exploited Vulnerabilities catalog in 2025 were API-related. Every new API endpoint that takes an object ID adds another place where a BOLA check can go missing.
What Does a BOLA Attack Look Like?
BOLA attacks follow one shape with several variations. The attacker logs in as themselves, finds a request that names an object, and replaces that object’s ID with someone else’s. The variations below differ in what the attacker can do once the swap works.
Reading Another User’s Records
The most common BOLA reads data the attacker should never see: invoices, medical records, messages, addresses, or order histories. The USPS case fits here. OWASP’s API1:2023 entry adds a business example in which a revenue-chart endpoint takes a shop name in the URL, so an attacker who lists every hosted shop can script substitutions and pull sales data from thousands of stores.
Changing or Deleting Objects the Attacker Does Not Own
BOLA on write operations does more damage than BOLA on reads. OWASP describes a document storage service whose GraphQL deleteReports mutation accepts a document ID and deletes the document without further checks. Write-side BOLA also appeared at USPS, where the API accepted account change requests for other users. Teams often test reads carefully and assume updates and deletes inherit the same checks, which is exactly where gaps appear.
Controlling Things in the Physical World
When an API controls devices, BOLA moves off the screen. OWASP’s example describes a vehicle maker’s mobile API that lets drivers start the engine and lock or unlock doors using a Vehicle Identification Number without confirming that the VIN belongs to the logged-in user. Any connected product, from door locks to fleet management, inherits this risk wherever commands reference a device by ID.
Harvesting IDs Instead of Guessing Them
Random identifiers make guessing harder, and attackers respond by collecting IDs from other endpoints. In 2019, researcher Anand Prakash described an Uber flaw in which one API returned any user’s UUID when given their phone number or email address. Replaying a second request with the victim’s UUID returned private information, including a mobile access token, and Prakash used that token to take over a test account. Uber fixed the issue and paid a bounty. The UUIDs were random, and the BOLA worked anyway, because one endpoint leaked the IDs another endpoint trusted.
Chains like this one show why a low-severity information leak deserves attention. Our article on how vulnerability chaining turns minor misconfigurations into account takeovers covers how attackers connect such findings.

Why Do Scanners Miss BOLA?
Automated scanners look for responses that reveal a problem: an error message, a reflected payload, a stack trace, or a known vulnerable version. A BOLA request reveals nothing of the kind. The server returns 200 OK with well-formed JSON, the same status and structure it returns to the rightful owner. Nothing in the response tells a scanner that the data belongs to someone else.
Several structural reasons make BOLA hard for automated tools to see.
- Scanners usually run as one identity. Proving BOLA requires at least two accounts, one that owns an object and one that should not reach it. A single-session scan cannot compare the two.
- Ownership lives in business data. Whether invoice 2078 belongs to User A depends on records the scanner cannot see, so it has no way to label a successful response as a leak.
- Object IDs hide in many places. IDs travel in paths, query strings, JSON bodies, headers, GraphQL arguments, and encoded tokens, and nested resources such as
/orgs/12/projects/88/files/301need a check at every level. - Partial checks look like protection. OWASP warns that comparing the session’s user ID with the ID parameter covers only a small subset of cases, so an endpoint can pass a simple test and still leak shared, nested, or tenant-scoped objects.
- Valid IDs come from other endpoints. As the Uber case showed, testers often need to harvest IDs elsewhere in the application before they can test the endpoint that trusts them.
This gap belongs to a broader limit of syntax-based testing, which our guide on why API security fails when you only test syntax instead of behavior covers in detail. It also explains why an application can stay exploitable after SAST and DAST both pass.
Recommended read: If you or your team are planning to compare testing approaches for authorization flaws, this article on six capabilities that separate agentic pentesting from traditional scanners is a great place to start.
How Do You Test an API for BOLA?
BOLA testing works best as a structured comparison between identities. The steps below turn that comparison into a repeatable test you can run before every release.
- Create test users across every boundary. Set up at least two users per role and at least two tenants or organizations, so you can test user-to-user and tenant-to-tenant access separately.
- Populate real objects for each user. Give every test user orders, documents, messages, payment methods, and any other object type the API exposes, so each one owns something worth protecting.
- Inventory every object reference. Walk the web app, mobile apps, and API documentation, and record every request that carries an ID, including IDs in bodies, headers, GraphQL arguments, and file paths. Our guide to iOS and Android pentesting covers how to capture the mobile traffic that often carries extra IDs.
- Swap IDs between users and tenants. Replay each request as User B with User A’s object IDs, and repeat across tenants. Record every response that returns data or performs an action.
- Test every verb. Repeat the swap for read, update, delete, export, share, and restore operations, because each handler can carry its own check.
- Follow nested and indirect references. Change one level of a nested path at a time, and test endpoints that accept lists of IDs, batch operations, and GraphQL node queries.
- Harvest IDs and retest. Look for endpoints that leak other users’ IDs through search, sharing, notifications, or public profiles, and feed those IDs into the swap tests.
- Keep the matrix as a regression suite. Turn each user-object-action combination into an automated test so new endpoints inherit the same coverage, which is what OWASP means when it says not to deploy changes that fail authorization tests.
Testing like this depends on authenticated access with several accounts, which is also what an AI pentest needs to reach the same depth. This explainer on what an agentic pentest does with your scope and credentials shows how multi-account access becomes tested authorization paths.

How Do You Fix and Prevent BOLA?
Durable BOLA fixes move the ownership check out of individual handlers and into a place every request passes through. OWASP’s guidance and its Authorization Cheat Sheet point to the same set of controls.
- Scope every query to the caller. Fetch objects with the owner or tenant in the query itself, such as “find order 2078 where customer equals the current user”, so a missing check returns nothing instead of someone else’s data.
- Centralize authorization decisions. Route object access through one policy layer or middleware so new endpoints inherit the check instead of reimplementing it.
- Deny by default. Treat any object the policy cannot place within the caller’s permissions as forbidden, including objects shared through teams, links, or delegated roles.
- Check permissions on every verb. Apply the same policy to updates, deletes, exports, and bulk operations, and validate every ID in a list.
- Use random IDs as defense in depth. OWASP recommends unpredictable values such as GUIDs, and the Uber case shows they reduce guessing without replacing the ownership check.
- Log and alert on denied object access. A burst of forbidden responses across sequential or harvested IDs is one of the clearest signals of a BOLA probe in progress.
Fixes are only as good as the retest that confirms them. Our case study on a complete API security overhaul for a fintech startup shows authorization fixes carried through to audit readiness, and our write-up of CVE-2026-10753, a broken access control flaw in Google’s Site Kit, shows how these checks fail even in widely used software.
Frequently Asked Questions (FAQs) About BOLA
The questions below come up most often when security and engineering teams plan API authorization testing.
Q1. What is BOLA in API security?
BOLA, or broken object level authorization, is an API flaw in which an endpoint acts on an object without confirming that the logged-in user may access that object. Attackers exploit BOLA by changing an object ID in a request to read, edit, or delete other users’ data.
Q2. What is the difference between BOLA and IDOR?
IDOR, or insecure direct object reference, describes exploiting a user-controlled reference such as an ID in a URL. BOLA is OWASP’s API-focused name for the missing authorization check behind it. In practice, most IDOR findings in APIs are BOLA, though BOLA also covers cases where attackers harvest IDs instead of guessing them.
Q3. Do UUIDs prevent BOLA?
UUIDs make IDs harder to guess, but they do not prevent BOLA. Attackers collect valid IDs from other endpoints, shared links, and logs, as the 2019 Uber account takeover showed. Every request still needs a server-side check that the caller owns or may access the object.
Q4. Why is BOLA ranked number one in the OWASP API Security Top 10?
OWASP ranks BOLA first because it is extremely common, easy to exploit with a single edited request, and often exposes large volumes of sensitive data. It held the top position in both the 2019 and 2023 editions of the OWASP API Security Top 10.
Q5. Can a web application firewall or API gateway stop BOLA?
A firewall or gateway rarely stops BOLA, because the attack request is valid and the gateway does not know which user owns which object. Gateways can rate-limit enumeration and flag bursts of denied requests, but the ownership check has to live in the application.
Q6. How often should we test for BOLA?
Test for BOLA whenever a release adds or changes an endpoint that takes an object ID, adds a role or tenant model, or introduces sharing features. An automated authorization matrix in CI catches regressions between releases, with deeper testing before major launches.
Prove Which Objects Your API Will Hand Over
BOLA hides behind successful responses, so the only reliable way to find it is to test with the identities an attacker would use. CredShields One brings agentic pentesting in-house: its AI pentesting agents test your APIs with the credentials you provide, try to reach objects that belong to other users, and confirm which records an attacker could actually read or change.
Every validated finding includes the request sequence that exposed another user’s object, along with the identity the agents used and the data it reached. Each finding also carries the root cause and the code fix, and a retest reruns the exact attack path against your patch. Your team can run the agents whenever a release adds an endpoint that takes an object ID, so authorization testing keeps pace with your API.
Run CredShields One against your APIs and see exactly which records an attacker could reach today.