Insecure Direct Object Reference (IDOR)
Pronunciationin-SIK-yoor di-REKT OB-jekt REF-er-ens
Definition
A security vulnerability where an application exposes a reference to an internal implementation object, such as a database key, allowing attackers to manipulate the input and gain unauthorized access to data.
Where you hear it
- During security code reviews - In penetration testing reports - When discussing authorization bugs
Examples
Changing the user ID in the URL parameter from
101to102allows viewing another user's profile.An API endpoint that returns account details using an unverified record ID is vulnerable to IDOR.
Changing the invoice number in the URL showed another customer's invoice, an IDOR bug.
Common mistake
Assuming that hiding the object ID in the user interface or frontend makes the endpoint secure, when the backend still fails to verify authorization.
Don't confuse with
IDOR is often confused with broken object level authorization (BOLA), but while IDOR is the underlying vulnerability caused by direct references, BOLA is the broader API security category that describes the lack of proper authorization checks.
Say it at work
- In a meeting or chat
We need to fix this IDOR issue in the user profile endpoint before we deploy to production.
- In an email or ticket
Please ensure that proper authorization checks are implemented to prevent potential IDOR vulnerabilities in this service.