Article
Insecure Direct Object Reference (IDOR)
OWASP Foundation · OWASP Free Intermediate
IDOR is the everyday version of the danger in one sentence: change the id in a URL or request from 1042 to 1043 and read someone else's record. This page defines it and shows why the fix is an ownership check on the server, not an unguessable id. Once you see it, you will test your own app by changing numbers in requests.
- Editing an id in a request can return another user's data
- The fix is checking ownership on the server, not hiding the id
- Random or long ids are not a substitute for an access check