IDOR / BOLA (insecure direct object reference)
A bug where changing an ID in a request, say invoice 1043 to 1044, returns someone else’s data because the server never checks who owns it.
IDOR (insecure direct object reference) is the older web name; BOLA (broken object level authorization) is the name in the OWASP API Security Top 10, where it is API1, the first risk, in the 2023 edition. The user may call the endpoint, so login and role checks pass. What is missing is the question “does this record belong to this user or tenant?” for every ID that comes from the client, in the path, query, a header or the body.
It is the most common form of broken access control and easy to find: an attacker logs in, then counts upward. Random identifiers such as UUIDs make guessing harder, but OWASP’s IDOR prevention cheat sheet is clear that the fix is the ownership check itself. In multi-tenant apps Row Level Security enforces it in the database, and pentesters test for it routinely during a penetration test.
Sources
- OWASP: API1:2023 Broken Object Level Authorization api-security.owasp.org
- OWASP: Insecure Direct Object Reference Prevention Cheat Sheet cheatsheetseries.owasp.org
Related terms
- Broken access control: A flaw that lets users read, change or delete data, or run actions, beyond their permissions; first in the OWASP Top 10 since 2021.
- Authentication vs authorization (authn vs authz): Authentication proves who you are; authorization decides what you may do. Most access bugs live in the second, after a perfectly good login.
- Row Level Security (RLS): Database rules that decide, row by row, which records each user may read or change. Missing RLS is a common leak in AI-built apps.
- OWASP Top 10: The OWASP Foundation’s list of the ten most critical web application security risks, updated every few years.
- Penetration test (pentest): An authorized, time-boxed attack on your app by security testers, ending in a report of what they could break and how badly.
- Rate limiting: Capping how many requests a user, key or IP can make in a time window, and answering HTTP 429 above it.
