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:

ClassGranularityTypical bug
API1 BOLAobjectGET /api/shop2/financial_info with shop1’s token
API3 BOPLAproperty (merges 2019 Excessive Data Exposure + Mass Assignment)client can set project_id it shouldn’t touch
API5 BFLAfunctionlow-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: unscoped Model.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 Model struct had no user_id, so resource queries couldn’t filter by owner (SentinelOne).
  • Tenant filter missing on writes. Meteroid’s UpdateCouponStatus gRPC handler filtered UPDATE by 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 foreign project_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 diff data (agentoffense).
  • One mutation in a family missing the check: revokeScope/grantScope trusted cross-org userId while sibling grantRole/revokeRole were correct (GraphQL org check).
  • Impact scales with the object graph: one user(id:) lookup that also selects orders, 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); Dubsmash UpdateSound trusted uuid (Dubsmash).
    More in GraphQL Authorization Flaws.

Internal RPC and capability tokens

  • Google Classroom batchexecute (undocumented RPC keyed by rpcids): obvious surfaces were solid, but a submission ID in 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/:documentName accepted typename.referenceId.columnName for 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 — WorkspacePopoverDeletionMutation deletes 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/user issued LiveKit and WSRS tokens for any room_id with 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/transfer trusted body senderId; 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, and meari-cloud/redirectAndLogin returned another user’s Meari camera session for any uid (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 client user_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).

Sources