# 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 ([[raw/agentoffense.com/bola-idor-testing-the-multi-account-object-swap-harness-15619|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?") ([[raw/agentoffense.com/bola-idor-testing-the-multi-account-object-swap-harness-15619|agentoffense]], [[raw/jrobineau.com/bola-your-api-checks-the-url-but-misses-ids-in-the-json-body-15618|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 ([[raw/agentoffense.com/bola-idor-testing-the-multi-account-object-swap-harness-15619|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 ([[raw/github.com/everydocs-core-authorization-bypass-15026|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 ([[raw/sentinelone.com/cve-2026-33030-nginx-ui-authorization-bypass-2944|SentinelOne]]). - **Tenant filter missing on writes.** Meteroid's `UpdateCouponStatus` gRPC handler filtered `UPDATE` by coupon ID only, not tenant ID (CVE-2026-125752) ([[raw/github.com/meteroid-before-2-2-0-cross-tenant-authorization-bypass-14029|Meteroid]]). - **Assumptions drift.** IDORs appear at workflow edges, in refactors, and when ownership assumptions are reused across steps that weren't designed to connect ([[raw/aikido.dev/idor-vulnerability-explained-why-idor-persists-aikido-4382|Aikido]]). - **No UI to hide behind.** An API endpoint has no "you can't click that" cue ([[raw/infosecwriteups.com/bola-enumerating-an-entire-employee-directory-through-a-predictable-id-11974|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` ([[raw/jrobineau.com/bola-your-api-checks-the-url-but-misses-ids-in-the-json-body-15618|jrobineau]]). - Version drift: older `/v1/` without the fix; deprecated endpoints (Fleet <4.92.0 authz bypass in a deprecated endpoint) ([[raw/intigriti.com/idor-a-complete-guide-to-exploiting-advanced-idor-vulnerabilities-inti-2796|Intigriti]], [[raw/github.com/fleet-authorization-bypass-in-deprecated-endpoint-15177|Fleet]]). - Static keywords: `/users/current` → `/users/<id>` ([[raw/weekly-bugbounty-content.beehiiv.com/broken-access-control-advanced-idor-exploitation-4163|Weekly Bug Bounty]], [[raw/0xsinsber.medium.com/the-hidden-idor-vulnerability-in-me-api-endpoints-12891|/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 ([[raw/agentoffense.com/bola-idor-testing-the-multi-account-object-swap-harness-15619|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 ([[raw/dev.to/graphql-bola-one-object-many-paths-and-how-to-prove-the-gap-14345|dev.to GraphQL BOLA]]). ```graphql 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` ([[raw/agentoffense.com/bola-idor-testing-the-multi-account-object-swap-harness-15619|agentoffense]]). - One mutation in a family missing the check: `revokeScope`/`grantScope` trusted cross-org `userId` while sibling `grantRole`/`revokeRole` were correct ([[raw/medium.com/graphql-idor-how-a-missing-org-check-let-me-edit-another-tenant-s-perm-12440|GraphQL org check]]). - Mutations by ID array: Snapchat `DeleteStorySnaps(ids: [String!]!)` deleted any Spotlight, $15,000 (#1819832) ([[raw/oxo.is/delete-anyone-s-snapchat-spotlight-content-remotely-15-000-idor-via-gr-13720|Snapchat]]); Dubsmash `UpdateSound` trusted `uuid` ([[raw/appsecure.security/reddit-bug-bounty-exploiting-an-idor-vulnerability-in-dubsmash-s-api-2790|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 ([[raw/infosecwriteups.com/how-i-found-an-idor-in-google-classroom-on-day-3-of-my-hunting-10827|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 ([[raw/masimshahzad.medium.com/facebook-idor-deleting-any-photo-album-case-study-15023|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) ([[raw/cyberkendra.com/researcher-used-ai-to-find-500000-worth-of-bugs-across-google-s-intern-9027|Cyberkendra]]). - Generic collaboration endpoints: Daptin `/yjs/:documentName` accepted `typename.referenceId.columnName` for any row of any table, admin tables included, read and write ([[raw/github.com/daptin-broken-access-control-idor-in-generic-yjs-collaboration-endpoin-15314|Daptin]]). ## Notable cases - **Cube Studio CVE-2026-111671** — low-priv user drives other tenants' notebook/inference lifecycle endpoints → pod deletion ([[raw/vuln.today/cube-studio-cve-2026-111671-cross-tenant-idor-13188|vuln.today]]). - **ZITADEL CVE-2025-64431** — Organization V2Beta API lets one org's admins tamper with other orgs ([[raw/advisories.gitlab.com/cve-2025-64431-idor-in-zitadel-organization-api-allows-cross-tenant-ta-4746|GitLab advisory]]). - **OpenCTI GHSA-pr6m-q4g7-342c** — `WorkspacePopoverDeletionMutation` deletes others' dashboards/investigations ([[raw/github.com/opencti-graphql-idor-allows-workspace-content-deletion-4747|OpenCTI]]). - **Dolibarr <24.0.2** — REST Documents API skips company scope for ticket attachments; predictable ticket IDs ([[raw/github.com/dolibarr-24-0-2-insecure-direct-object-reference-idor-14487|Dolibarr]]). - **CordysCRM CVE-2026-126496** — `GET /account/contact/get/{id}` without org/owner/data-scope checks ([[raw/github.com/1panel-dev-cordyscrm-before-1-9-6-authorization-bypass-idor-14032|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 ([[raw/medium.com/the-wildcard-parameter-that-exposed-60-million-usps-accounts-15889|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 ([[raw/community.protocall.ch/private-room-takeover-via-sequential-room-id-idor-15813|Protocall]]). - **`/app-api/enduserapp/profile/{userId}`** — authenticated-but-unauthorized profile reads with a 200/404 enumeration oracle ([[raw/zyt00nax0x.medium.com/idor-in-app-api-enduserapp-profile-userid-cross-account-pii-disclosure-15809|writeup]]). - **Novapay wallet (practice app)** — `POST /api/transfer` trusted body `senderId`; changing it to another user's ID moved their funds ([[raw/medium.com/bac-in-novapay-wallet-15927|writeup]]). - **Vikunja CVE-2026-33312** — delete path reused a read-focused validation helper, letting read-only users delete project backgrounds ([[raw/cvereports.com/cve-2026-33312-bola-in-vikunja-project-3063|cvereports]]). ## Defenses - Derive the subject from the verified token (`sub`), never from client `user_id`, tenant header or unverified subdomain ([[raw/agentoffense.com/bola-idor-testing-the-multi-account-object-swap-harness-15619|agentoffense]], [[raw/apisecurity.io/api1-2019-broken-object-level-authorization-4376|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) ([[raw/jrobineau.com/bola-your-api-checks-the-url-but-misses-ids-in-the-json-body-15618|jrobineau]]). - Put authz in the business/data layer, not per resolver, so every GraphQL path hits one decision ([[raw/dev.to/graphql-bola-one-object-many-paths-and-how-to-prove-the-gap-14345|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 ([[raw/medium.com/the-wildcard-parameter-that-exposed-60-million-usps-accounts-15889|USPS]]). - When the API mints tokens for another system (media server, chat), make issuance the authorization point ([[raw/community.protocall.ch/private-room-takeover-via-sequential-room-id-idor-15813|Protocall]]). - Gateways and WAFs can't evaluate ownership; gateway-only enforcement leaves service-to-service calls, jobs and queue consumers unprotected ([[raw/agentoffense.com/bola-idor-testing-the-multi-account-object-swap-harness-15619|agentoffense]]). - Detect abuse in traffic: spikes in 401/403 per session and sequential ID walks are the signals ([[raw/sycope.com/idor-vulnerability-detection-through-http-traffic-analysis-4162|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 - [[raw/agentoffense.com/bola-idor-testing-the-multi-account-object-swap-harness-15619|BOLA/IDOR testing: the multi-account object-swap harness]] - [[raw/apisecurity.io/api1-2019-broken-object-level-authorization-4376|API1:2019 - Broken object level authorization]] - [[raw/jrobineau.com/bola-your-api-checks-the-url-but-misses-ids-in-the-json-body-15618|BOLA: your API checks the URL but misses IDs in the JSON body]] - [[raw/github.com/everydocs-core-authorization-bypass-15026|EveryDocs Core authorization bypass]] - [[raw/sentinelone.com/cve-2026-33030-nginx-ui-authorization-bypass-2944|CVE-2026-33030: Nginx UI Authorization Bypass]] - [[raw/github.com/meteroid-before-2-2-0-cross-tenant-authorization-bypass-14029|Meteroid before 2.2.0 cross-tenant authorization bypass]] - [[raw/aikido.dev/idor-vulnerability-explained-why-idor-persists-aikido-4382|IDOR Vulnerability Explained: Why IDOR Persists]] - [[raw/infosecwriteups.com/bola-enumerating-an-entire-employee-directory-through-a-predictable-id-11974|BOLA: Enumerating an Entire Employee Directory Through a Predictable ID]] - [[raw/intigriti.com/idor-a-complete-guide-to-exploiting-advanced-idor-vulnerabilities-inti-2796|IDOR: A Complete Guide to Exploiting Advanced IDOR Vulnerabilities]] - [[raw/github.com/fleet-authorization-bypass-in-deprecated-endpoint-15177|Fleet authorization bypass in deprecated endpoint]] - [[raw/weekly-bugbounty-content.beehiiv.com/broken-access-control-advanced-idor-exploitation-4163|Broken Access Control: Advanced IDOR Exploitation]] - [[raw/0xsinsber.medium.com/the-hidden-idor-vulnerability-in-me-api-endpoints-12891|The Hidden IDOR Vulnerability in /me/ API Endpoints]] - [[raw/dev.to/graphql-bola-one-object-many-paths-and-how-to-prove-the-gap-14345|GraphQL BOLA: one object, many paths, and how to prove the gap]] - [[raw/medium.com/graphql-idor-how-a-missing-org-check-let-me-edit-another-tenant-s-perm-12440|GraphQL IDOR: How a Missing Org Check Let Me Edit Another Tenant's Permissions]] - [[raw/oxo.is/delete-anyone-s-snapchat-spotlight-content-remotely-15-000-idor-via-gr-13720|Delete anyone's Snapchat Spotlight content remotely ($15,000)]] - [[raw/appsecure.security/reddit-bug-bounty-exploiting-an-idor-vulnerability-in-dubsmash-s-api-2790|Reddit Bug Bounty: Exploiting an IDOR Vulnerability in Dubsmash's API]] - [[raw/infosecwriteups.com/how-i-found-an-idor-in-google-classroom-on-day-3-of-my-hunting-10827|How I found an IDOR in Google Classroom]] - [[raw/masimshahzad.medium.com/facebook-idor-deleting-any-photo-album-case-study-15023|Facebook IDOR: Deleting Any Photo Album (Case Study)]] - [[raw/cyberkendra.com/researcher-used-ai-to-find-500000-worth-of-bugs-across-google-s-intern-9027|Researcher Used AI to Find $500000 Worth of Bugs Across Google's Internal APIs]] - [[raw/github.com/daptin-broken-access-control-idor-in-generic-yjs-collaboration-endpoin-15314|Daptin: Broken Access Control (IDOR) in generic YJS collaboration endpoint]] - [[raw/vuln.today/cube-studio-cve-2026-111671-cross-tenant-idor-13188|Cube Studio CVE-2026-111671 cross-tenant IDOR]] - [[raw/advisories.gitlab.com/cve-2025-64431-idor-in-zitadel-organization-api-allows-cross-tenant-ta-4746|CVE-2025-64431: IDOR in ZITADEL Organization API]] - [[raw/github.com/opencti-graphql-idor-allows-workspace-content-deletion-4747|OpenCTI GraphQL IDOR Allows Workspace Content Deletion]] - [[raw/github.com/dolibarr-24-0-2-insecure-direct-object-reference-idor-14487|Dolibarr 24.0.2 insecure direct object reference (IDOR)]] - [[raw/github.com/1panel-dev-cordyscrm-before-1-9-6-authorization-bypass-idor-14032|1Panel-dev CordysCRM before 1.9.6 authorization bypass (IDOR)]] - [[raw/cvereports.com/cve-2026-33312-bola-in-vikunja-project-3063|CVE-2026-33312: BOLA in Vikunja Project]] - [[raw/sycope.com/idor-vulnerability-detection-through-http-traffic-analysis-4162|IDOR Vulnerability Detection Through HTTP Traffic Analysis]] - [[raw/medium.com/the-wildcard-parameter-that-exposed-60-million-usps-accounts-15889|The Wildcard Parameter That Exposed 60 Million USPS Accounts]] - [[raw/community.protocall.ch/private-room-takeover-via-sequential-room-id-idor-15813|Private room takeover via sequential room_id (IDOR)]] - [[raw/zyt00nax0x.medium.com/idor-in-app-api-enduserapp-profile-userid-cross-account-pii-disclosure-15809|IDOR in /app-api/enduserapp/profile/{userId} — Cross-Account PII Disclosure]] - [[raw/medium.com/bac-in-novapay-wallet-15927|BAC In Novapay wallet]]