IDOR is one of the most common security bugs we find when testing web applications and APIs. It is simple to understand, often easy to exploit, and it can expose the private data of every user on a platform. In this guide we explain what an IDOR vulnerability is, how attackers find it, real examples, and how developers can fix it for good.
What is IDOR?
IDOR stands for Insecure Direct Object Reference. It happens when an application uses an ID that the user can change (such as an invoice number, user ID or file name) to fetch data, but never checks whether that user is actually allowed to see or change that data.
Think of a hotel where every room key opens any door, as long as you know the room number. You only booked room 101, but nothing stops you from walking into room 102. That is IDOR.
IDOR is part of Broken Access Control , which is ranked A01 in the OWASP Top 10:2025 .…