Broken Object Level Authorization: Still API's #1 Risk
Broken object level authorization still drives most API breaches in 2026. See how BOLA attacks work, new 2026 research, and the fixes that stop them.
By Babul Jack
What is broken object level authorization?
Broken object level authorization (BOLA) is the API flaw where a server hands back or changes a record based only on an ID the client supplies, without checking that the caller actually owns that record. It has sat at #1 on the OWASP API Security Top 10 since the list's first edition, and in client codebases I still find it in the first authorization review, usually hiding behind a perfectly valid session token.
BOLA exploits don't need malware, zero-days, or privilege escalation tooling. The attack is almost boring in its simplicity, which is exactly why it keeps working:
Authenticate normally. The attacker signs up for a real account and gets a legitimate session token.
Observe an object reference. Browsing the app reveals an identifier in a URL or request body, like GET /api/v1/invoices/1043.
Tamper with the identifier. Changing 1043 to 1044 stays syntactically valid but now points at someone else's record.
Receive the object. A vulnerable server checks that the token is valid, not that the token's owner is allowed to see invoice 1044, and returns it anyway.
Enumerate at scale. A short script loops through IDs and pulls every record the endpoint will serve.
Why does BOLA still rank #1 in the OWASP API Security Top 10?
Three things keep broken object level authorization at the top of the list year after year. First, exploitation needs no privilege escalation or malformed traffic — every request carries valid credentials and correct syntax, so it sails past a web application firewall. Second, server logs show authenticated requests returning 200 OK responses, which looks identical to normal traffic unless someone is watching for identifier enumeration patterns. Third, the fix (server-side ownership checks on every object access) is conceptually simple but easy to skip under deadline pressure, especially across dozens of endpoints maintained by different developers over time.
Authentication and authorization are not the same question, and BOLA is what happens when a team only answers the first one. Authentication confirms who is calling; authorization has to confirm what that caller is allowed to reach, on every single request, not just at login.
IDOR vs BOLA: what's the difference?
Insecure Direct Object Reference (IDOR) is the older, broader term for exposing internal identifiers that let a user reach unintended data. BOLA is the API-specific framing OWASP adopted in its API Security Top 10, and it covers the same root cause applied to REST, GraphQL, and RPC-style endpoints rather than traditional web forms. In practice I treat them as the same bug family: if the fix is "check ownership server-side before returning the object," you're defending against both.
What new 2026 research reveals about real-world BOLA
Most BOLA guidance is conceptual — two OWASP examples and a handful of blog war stories. A 2026 empirical study changed that by sampling 200 HackerOne disclosures tagged IDOR or Improper Access Control from 2021–2026 and classifying 107 of them in full detail, as described in the arXiv paper "Broken Object Level Authorization in the Wild". The findings are a useful reality check for anyone who assumes BOLA is mostly a "read someone else's profile" bug:
78.5% of the 107 classified reports were confirmed as genuine, in-scope BOLA — the first large-scale empirical measurement of the vulnerability class.
41.7% of confirmed cases were "Action-Level Object BOLA": unauthorized state-changing actions (updating, deleting, or triggering workflows) on another user's objects, not just reading their data.
11.9% of confirmed cases were vertical privilege failures, where a regular user reached admin-level objects or actions.
~21.5% of reports tagged IDOR on bug bounty platforms turned out to be out of scope under strict BOLA criteria, meaning tag-counting alone overstates how common the bug really is.
The practical takeaway for engineering teams: don't just test whether a user can view another user's object. Test whether they can change it, since nearly four in ten confirmed BOLA findings in this dataset were action-level, not read-only. A related writeup on BOLA impact and prevention from CloudSEK walks through the same exploit pattern against invoice and order endpoints, which is exactly where I see it most in fintech-adjacent client work — payment history, payout records, and KYC document retrieval are the three endpoint types I check first on every audit.
How to prevent broken object level authorization
There's no library you install to fix BOLA; it's an architectural discipline. These are the controls I put in place on every API I audit or build in 2026:
Control
What it does
Why it matters
Centralized authorization layer
One function/middleware decides access for every object, not per-handler checks
Scattered checks drift and someone always forgets one route
Deny by default
Access fails closed unless an explicit rule allows it
Removes the "we'll add the check later" gap
Server-derived ownership
Ownership comes from the session + database, never a client-supplied field
Clients can lie about user_id in a request body
Non-sequential identifiers
Use UUIDs instead of auto-increment integers
Makes enumeration far harder, though it's not a substitute for real checks
404 instead of 403 on denial
Don't confirm an object exists to an unauthorized caller
A 403 is a free enumeration oracle; a 404 gives nothing away
Per-request re-authorization
Check ownership on every call, including POST/PUT/PATCH/DELETE
Write operations are where the costliest BOLA findings happen
Testing your APIs for BOLA
A minimal manual test takes two accounts and five minutes:
# Account A creates a resource
curl -X POST https://api.example.com/v1/invoices \
-H "Authorization: Bearer $TOKEN_A" -d '{"amount": 500}'
# returns {"id": "inv_1043", ...}
# Account B tries to read Account A's invoice
curl https://api.example.com/v1/invoices/inv_1043 \
-H "Authorization: Bearer $TOKEN_B"
# a secure API returns 404; a vulnerable one returns 200 with the invoice
Run the same check against GET, PUT, PATCH, and DELETE for every object-bearing endpoint, not just the ones your frontend happens to use. Cloudflare's BOLA detection guidance also flags a second pattern worth watching for: parameter pollution, where the same identifier appears in both the path and the request body with different values and the API quietly trusts the wrong one.
If you're migrating payment flows, the object-level authorization question gets sharper, not softer — every payout, refund, and payment-method endpoint is a BOLA target by definition. I covered the surrounding API changes in my piece on the PayPal Payments API v2 migration, and the same ownership-check discipline applies whether you're touching PayPal, Stripe, or an internal ledger service.
This is also the exact gap a structured security audit is built to catch — walking every object-bearing endpoint with two test accounts, across every HTTP verb, before an attacker does it for you with a script.
How this compares to other authorization failures I audit
BOLA sits next to two other bugs I see constantly in client reviews: SAML assertion tampering, which I broke down in why SAML authentication bypass keeps happening, and supply-chain compromise through dependencies, covered in my npm supply chain attack prevention guide. All three share a pattern: the system correctly verifies that a request is authenticated while quietly skipping what that identity is actually allowed to do.
Frequently asked questions
Is BOLA the same as IDOR?
They describe the same root cause. IDOR is the general web-security term for exposed object references; BOLA is the API-specific name OWASP uses in its API Security Top 10, where it has held the #1 spot since the list began.
Can rate limiting stop BOLA attacks?
Rate limiting slows down bulk enumeration but does not fix the underlying flaw. A single manually crafted request with one changed ID is enough to steal one record, and rate limiting won't stop that; only a server-side ownership check does.
Does using UUIDs instead of sequential IDs fix BOLA?
No. Non-sequential identifiers make blind enumeration harder, but if an attacker ever learns or leaks one valid UUID belonging to another user, the server will still hand over the object unless it performs an actual ownership check.
Why do automated scanners miss so much BOLA?
Scanners test known patterns against single endpoints, but BOLA is contextual — it requires two real accounts and knowledge of which fields represent ownership. That's why the 2026 bug bounty analysis found such a high proportion of action-level (write) BOLA, a category automated tools frequently skip.
Should BOLA fixes happen before or after a PCI or SOC 2 audit?
Before. Object-level authorization gaps on payment, invoice, or account-data endpoints are exactly what auditors and attackers both target first, and fixing the authorization layer is far cheaper than remediating a live breach mid-audit.
Key takeaways
Broken object level authorization lets an authenticated attacker reach another user's data or actions by changing an ID the server trusts without verifying ownership.
BOLA has held the #1 spot in the OWASP API Security Top 10 since the list's inception, and a 2026 empirical study confirmed 78.5% of sampled bug bounty reports as genuine BOLA.
41.7% of confirmed cases in that study were action-level (write) BOLA, not simple data reads, so test PUT/PATCH/DELETE endpoints as hard as GET endpoints.
Fix it with a centralized, deny-by-default authorization layer that derives ownership server-side, returns 404 instead of 403 on denial, and re-checks on every request.
Non-sequential IDs and rate limiting reduce the attack surface but are not substitutes for a real ownership check.