Application and API security
IDOR
Insecure Direct Object Reference
A condition in which changing a reference to an object exposes data or an action, because the application does not enforce the required authorisation decision on that specific object.
What it means in practice
The mechanism is unglamorous. A URL carries an object identifier — an invoice number, a case reference, a patient id. The user substitutes someone else’s, and the application returns the record because it checked only that the request came from a logged-in user, not that this user is entitled to this object.
Consequences are disproportionate to the simplicity. A defect of this class rarely exposes one record; it exposes the set, because the identifier can be iterated.
Who it applies to
Risk concentrates wherever an application serves data scoped to a person or an organisation: customer portals, patient portals, case-management systems, partner dashboards and self-service billing.
The regulatory tail is what surprises teams. Beyond the security incident, exposure of records belonging to identifiable people is a personal data breach, with its own assessment and notification path running on its own clock.
A common misconception
The most common belief is that a random identifier fixes it. It raises the cost of enumeration and nothing more — identifiers leak through URLs, logs, browser history, referrer headers and shared links.
The second concerns where the check belongs. Hiding a function in the interface does not protect an endpoint that still accepts the request. The authorisation decision has to be made server-side, on every request, against the specific object.
Related terms
- BOLAInsufficient enforcement of a caller's permission to act on a particular object through an API. An opaque or unpredictable identifier is not a substitute for that check.
- OWASP API Security Top 10An OWASP awareness document for significant API security risks. It helps organise discussion, but an API still requires examination of its own business logic, identity boundaries and authorisation paths.
- OWASP Top 10An OWASP awareness document describing prominent web-application risk categories. It provides common vocabulary, not a complete test plan and not a certification of an application.
- Penetration testAn authorised attempt to exploit weaknesses within agreed systems and written rules of engagement. The result is time-bound and scope-bound; it does not certify assets, roles or attack paths that were not examined.
Related services
Move from definitions to decisions and evidence
Use the free readiness checklist to turn security requirements into accountable owners, working controls and evidence.