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).
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
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
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
Sources
Need this tested on your systems?
Share your scope and we will propose a human-led plan with proof and a retest.
