SECURITY GLOSSARY

BOLA (Broken Object Level Authorisation)

BOLA is an API flaw where the server does not check that the caller may access the specific object they asked for, so changing an ID in a request returns someone else’s data. It is first in the OWASP API Security Top 10 (2023).

What it is

BOLA is an API flaw where the server does not check that the caller may access the specific object they asked for, so changing an ID in a request returns someone else’s data. It is first in the OWASP API Security Top 10 (2023).

BOLA: same request, someone else’s objectBOLA: user A and user B each send GET /api/invoices/1043 with their own token. The server returns user A’s invoice to both, because there is no ownership check. OWASP API Security Top 10 (2023), API1. BOLASame request, someone else’s objectUser AOwn tokenSENDSGET /api/invoices/1043Returns user A’s invoiceExpectedUser BOwn tokenSENDSGET /api/invoices/1043Returns user A’s invoiceNo ownership checkIllustrative. OWASP API Security Top 10 (2023): API1.
BOLA: same request, someone else’s objectBOLA: user A and user B each send GET /api/invoices/1043 with their own token. The server returns user A’s invoice to both, because there is no ownership check. OWASP API Security Top 10 (2023), API1. BOLASame request, someone else’s objectUser A · own tokenGET /api/invoices/1043Returns user A’s invoiceUser B · own tokenGET /api/invoices/1043Returns user A’s invoiceNo ownership checkIllustrative. OWASP API Security Top 10 (2023): API1.

Why it matters

BOLA leads directly to data exposure across users or tenants, and scanners rarely find it because they cannot tell whose data a response belongs to.

How we test it

We test with at least two users (and two tenants where relevant), swap object identifiers across every endpoint that takes one, and confirm whether authorisation is enforced on the server.

Common mistakes

  • Relying on unguessable IDs instead of authorisation checks
  • Checking access in the UI but not in the API
  • Testing with only one account

An example

GET /api/invoices/1043 returns user A’s invoice; user B sends the same request with their own token and still gets it.

Not to be confused with

BFLA (Broken Function Level Authorisation), where the caller can use a function or role they should not have, such as an admin endpoint.

In more detail

BOLA is the API-specific form of the problem behind IDOR. APIs make it easy to introduce because object identifiers are everywhere: in paths, query strings, request bodies, nested objects and batch endpoints. Every route that accepts an identifier needs its own ownership check, and a single route without one is enough. Modern APIs add more places to miss it, such as GraphQL queries that resolve related objects, bulk or export endpoints that take a list of identifiers, and background jobs or webhooks that act on behalf of a user.

BOLA is API1:2023 in the OWASP API Security Top 10. It is often confused with BFLA, Broken Function Level Authorisation (API5:2023), which is about who may call a function such as an administrative action rather than which object they may touch. Both can appear on the same endpoint, so both need testing.

How to reduce the risk

  • Centralise object-level authorisation in one policy layer or middleware, so that no individual handler has to remember to apply it
  • Derive the owner or tenant from the authenticated token, not from a parameter the caller supplies
  • Test every route with two users and two tenants, including list, search, export and nested-object routes
  • Where it does not harm legitimate use, return the same response for a missing object and a forbidden one, so a response does not confirm that a record exists

What good testing evidence looks like

We record the API definition or traffic used to map every identifier, the accounts involved, and a table of which role could reach which object type through which route. Findings are written so a developer can reproduce them in a test environment and add a regression test. We also note where the check is correct, so a retest has a clear baseline.

Related at PoCForge

Need this tested on your systems?

Share your scope and we will propose a human-led plan with proof and a retest.

Request a free scope review →