BOLA: The API Vulnerability Automated Scanners Keep Missing

Broken Object Level Authorisation is the top risk in the OWASP API Security Top 10. Here's why scanners struggle to find it and how to test for it properly.

By the iDefenzer Security Team

Broken Object Level Authorisation (BOLA), often called IDOR, is ranked first in the OWASP API Security Top 10. It occurs when an API accepts an object identifier from the client, such as an account number, order ID or document ID, and returns or modifies that object without checking whether the caller is allowed to access it.

A simple example

A mobile banking app requests GET /api/v2/accounts/10482/statements. The server verifies that the access token is valid, but not that account 10482 belongs to the token's owner. Changing the ID to 10483 returns another customer's statements.

Why scanners miss it

  • The request looks legitimate. There is no malicious payload, just a different, valid identifier.
  • The response looks successful. A 200 OK with well-formed data is exactly what a scanner expects.
  • The tool doesn't know your rules. Only someone who understands which user should see which object can recognise the response as a breach.

How to test for BOLA effectively

Reliable testing requires at least two accounts per role, ideally across different tenants or organisations. Testers build a matrix of endpoints, methods and object types, then systematically attempt to access each user's objects with the other user's credentials, including on update and delete operations, nested resources and less obvious identifiers in headers or request bodies.

TipUnpredictable IDs such as UUIDs make enumeration harder but do not fix BOLA. Identifiers leak through URLs, logs, shared links and other API responses.

How to prevent it

  • Enforce authorisation checks in a central, reusable layer rather than in individual handlers.
  • Derive the acting user from the server-side session or token, never from client-supplied fields.
  • Scope database queries by owner or tenant by default.
  • Add automated tests that assert cross-user access is denied for every sensitive endpoint.

BOLA is not exotic, but it is one of the most consistently impactful API issues. It deserves deliberate, manual attention in every API assessment.

Related serviceNeed help with this? Our API Security Assessment team can help you assess and reduce this risk. Talk to us.
Start a conversation

Your Security Posture Deserves More Than a Checklist.

Let's identify your security gaps, understand your risks and build a stronger security strategy.