BOLA in APIs
Broken Object Level Authorization (OWASP API1:2019 and API1:2023): an API endpoint takes a client-supplied object identifier and never decides whether the authenticated subject may perform this action on this object. It’s the API-era name for IDOR.
How it works
BOLA and IDOR describe the same defect; the names suggest different fixes. “Insecure direct reference” points at making references indirect or unguessable; “broken authorization” points at the real defect, the missing subject-to-object decision (agentoffense). The 2023 API Top 10 splits access control by granularity:
| Class | Granularity | Typical bug |
|---|---|---|
| API1 BOLA | object | GET /api/shop2/financial_info with shop1’s token |
| API3 BOPLA | property (merges 2019 Excessive Data Exposure + Mass Assignment) | client can set project_id it shouldn’t touch |
| API5 BFLA | function | low-priv user reaches admin endpoint |
Mislabelling costs: a mass-assignment bug filed as BOLA gets the wrong fix, and a role check (“is this user an editor?”) is mistaken for an object check (“may this editor edit document 4411?”) (agentoffense, jrobineau). See OWASP API Security Top 10, Mass Assignment, Function Level Authorization.
Why APIs breed it
- Route-level authz, object-level data. Middleware authorizes the route or controller; each object read/write needs its own decision (agentoffense).
- Find-by-id ORMs.
Order.find(params[:id])returns any row; scoping is opt-in. EveryDocs Core: unscopedModel.find(params[:id])across documents, files, folders, tags, people (EveryDocs). - Data model without owner column. Nginx UI ≤2.3.3 (CVE-2026-33030): the base
Modelstruct had nouser_id, so resource queries couldn’t filter by owner (SentinelOne). - Tenant filter missing on writes. Meteroid’s
UpdateCouponStatusgRPC handler filteredUPDATEby coupon ID only, not tenant ID (CVE-2026-125752) (Meteroid). - Assumptions drift. IDORs appear at workflow edges, in refactors, and when ownership assumptions are reused across steps that weren’t designed to connect (Aikido).
- No UI to hide behind. An API endpoint has no “you can’t click that” cue (employee directory BOLA).
Techniques / payloads
REST
- Path vs body: authorize path ID, act on body ID —
PATCH /docs/{yours}with{"id":"{victim}"}or a foreignproject_id(jrobineau). - Version drift: older
/v1/without the fix; deprecated endpoints (Fleet <4.92.0 authz bypass in a deprecated endpoint) (Intigriti, Fleet). - Static keywords:
/users/current→/users/<id>(Weekly Bug Bounty, /me/ endpoints). - Batch/bulk: envelope authorized once, items not; rate limits count requests, not items, so a 500-ID bulk delete is 500 BOLA calls in one request (agentoffense).
GraphQL
“The check lives on a path, not on the object.” The same Invoice is reachable via invoice(id:), node(id:)/nodes, me { invoices }, search unions and mutation payloads, each a separate resolver; enumerate every path that returns the type from the schema (introspection or Clairvoyance) and test them all with aliases in one request (dev.to GraphQL BOLA).
query {
a: invoice(id: "VICTIM") { id total }
b: node(id: "SW52b2ljZTo0NDEx") { ... on Invoice { id total } } # base64 "Invoice:4411"
}- Resolvers often authorize the root field and trust traversal below it (
viewer.organization.members.invoices); failures return 200 +errors, so diffdata(agentoffense). - One mutation in a family missing the check:
revokeScope/grantScopetrusted cross-orguserIdwhile siblinggrantRole/revokeRolewere correct (GraphQL org check). - Impact scales with the object graph: one
user(id:)lookup that also selectsorders, payment metadata or messages leaks all of them if nested resolvers inherit the root decision. Prove it with two controlled accounts (A’s own query as baseline, then B’s ID under A’s token) and a redacted response; with sequential IDs the report is a whole-table breach, not one victim (securityelites). - Mutations by ID array: Snapchat
DeleteStorySnaps(ids: [String!]!)deleted any Spotlight, $15,000 (#1819832) (Snapchat); DubsmashUpdateSoundtrusteduuid(Dubsmash).
More in GraphQL Authorization Flaws.
Internal RPC and capability tokens
- Google Classroom
batchexecute(undocumented RPC keyed byrpcids): obvious surfaces were solid, but asubmission IDin a comment RPC let an attacker post private comments on any student’s submission (Google Classroom). - Facebook Graph API (2015, $12,500): album delete checked whether the app token had the capability (first-party mobile app token did), not whether the caller owned the album (Facebook album).
- Brutecat mined ~3,600 API keys from 60,000 APKs to pull discovery docs for 1,500+ internal Google APIs, then probed for IDOR/BAC (Google Voice/Fiber endpoint with zero access control, among others; >$500k) (Cyberkendra).
- Generic collaboration endpoints: Daptin
/yjs/:documentNameacceptedtypename.referenceId.columnNamefor any row of any table, admin tables included, read and write (Daptin).
Notable cases
- Cube Studio CVE-2026-111671 — low-priv user drives other tenants’ notebook/inference lifecycle endpoints → pod deletion (vuln.today).
- ZITADEL CVE-2025-64431 — Organization V2Beta API lets one org’s admins tamper with other orgs (GitLab advisory).
- OpenCTI GHSA-pr6m-q4g7-342c —
WorkspacePopoverDeletionMutationdeletes others’ dashboards/investigations (OpenCTI). - Dolibarr <24.0.2 — REST Documents API skips company scope for ticket attachments; predictable ticket IDs (Dolibarr).
- CordysCRM CVE-2026-126496 —
GET /account/contact/get/{id}without org/owner/data-scope checks (CordysCRM). - USPS Informed Visibility (~60M accounts) — the search API accepted wildcard terms, so any logged-in user could match every record (emails, usernames, account numbers, addresses, phones) and, per the writeup, modify accounts; results were never scoped to the caller. Ignored for over a year until Krebs’s coverage forced a fix (writeup).
- Protocall —
POST /api/room/token/userissued LiveKit and WSRS tokens for anyroom_idwith no membership check, so the media layer admitted users the app-level waiting room had not approved (Protocall). /app-api/enduserapp/profile/{userId}— authenticated-but-unauthorized profile reads with a 200/404 enumeration oracle (writeup).- Novapay wallet (practice app) —
POST /api/transfertrusted bodysenderId; changing it to another user’s ID moved their funds (writeup). - DreameHome cloud API < 2026-10-14 — two IoT endpoints minted downstream credentials for caller-chosen identifiers:
token/rtc2(CVE-2026-49964) issued Agora RTC tokens for any device DID + owner UID, andmeari-cloud/redirectAndLoginreturned another user’s Meari camera session for anyuid(RTC, Meari). - Vikunja CVE-2026-33312 — delete path reused a read-focused validation helper, letting read-only users delete project backgrounds (cvereports).
Defenses
- Derive the subject from the verified token (
sub), never from clientuser_id, tenant header or unverified subdomain (agentoffense, APISecurity.io). - Check every received ID — path, query and body/foreign keys — for existence and ownership in the same query; drop fields the product doesn’t need to accept (that’s the Mass Assignment fix) (jrobineau).
- Put authz in the business/data layer, not per resolver, so every GraphQL path hits one decision (dev.to GraphQL BOLA).
- Scope search and filter results to the caller server-side, and reject wildcard or match-all terms on user-facing search (USPS).
- When the API mints tokens for another system (media server, chat, camera platform), make issuance the authorization point (Protocall, DreameHome).
- Gateways and WAFs can’t evaluate ownership; gateway-only enforcement leaves service-to-service calls, jobs and queue consumers unprotected (agentoffense).
- Detect abuse in traffic: spikes in 401/403 per session and sequential ID walks are the signals (Sycope).
Related
- Insecure Direct Object Reference
- IDOR Testing Methodology
- Predictable Identifiers
- OWASP API Security Top 10
- API Security
- GraphQL Authorization Flaws
- Mass Assignment
- Excessive Data Exposure
- Multi-Tenant Isolation
- Authorization Policy Engines
Sources
- BOLA/IDOR testing: the multi-account object-swap harness · original
- API1:2019 - Broken object level authorization · original
- BOLA: your API checks the URL but misses IDs in the JSON body · original
- EveryDocs Core authorization bypass · original
- CVE-2026-33030: Nginx UI Authorization Bypass · original
- Meteroid before 2.2.0 cross-tenant authorization bypass · original
- IDOR Vulnerability Explained: Why IDOR Persists · original
- BOLA: Enumerating an Entire Employee Directory Through a Predictable ID · original
- IDOR: A Complete Guide to Exploiting Advanced IDOR Vulnerabilities · original
- Fleet authorization bypass in deprecated endpoint · original
- Broken Access Control: Advanced IDOR Exploitation · original
- The Hidden IDOR Vulnerability in /me/ API Endpoints · original
- GraphQL BOLA: one object, many paths, and how to prove the gap · original
- GraphQL IDOR: How a Missing Org Check Let Me Edit Another Tenant's Permissions · original
- Delete anyone's Snapchat Spotlight content remotely ($15,000) · original
- Reddit Bug Bounty: Exploiting an IDOR Vulnerability in Dubsmash's API · original
- How I found an IDOR in Google Classroom · original
- Facebook IDOR: Deleting Any Photo Album (Case Study) · original
- Researcher Used AI to Find $500000 Worth of Bugs Across Google's Internal APIs · original
- Daptin: Broken Access Control (IDOR) in generic YJS collaboration endpoint · original
- Cube Studio CVE-2026-111671 cross-tenant IDOR · original
- CVE-2025-64431: IDOR in ZITADEL Organization API · original
- OpenCTI GraphQL IDOR Allows Workspace Content Deletion · original
- Dolibarr 24.0.2 insecure direct object reference (IDOR) · original
- 1Panel-dev CordysCRM before 1.9.6 authorization bypass (IDOR) · original
- CVE-2026-33312: BOLA in Vikunja Project · original
- IDOR Vulnerability Detection Through HTTP Traffic Analysis · original
- The Wildcard Parameter That Exposed 60 Million USPS Accounts · original
- Private room takeover via sequential room_id (IDOR) · original
- IDOR in /app-api/enduserapp/profile/{userId} — Cross-Account PII Disclosure · original
- BAC In Novapay wallet · original
- GraphQL Vulnerabilities Bug Bounty 2026: Introspection, Batching and BOLA · original
- DreameHome cloud API insecure direct object reference · original
- DreameHome cloud API insecure direct object reference (2) · original