Insecure Direct Object Reference (IDOR)
A flaw where changing an identifier in a request lets a user access data belonging to someone else.
What it is
An insecure direct object reference occurs when an application uses a value from the request, such as a record number, to fetch data without checking that the current user is allowed to see that specific record. By changing the identifier, an attacker can reach other users' data. It is a very common and easily exploited form of broken access control.
Why it matters
It allows straightforward, large-scale access to other users' private data simply by altering a value in a request.
How to fix it
Check on the server that the logged-in user is authorized for the exact record being requested, and prefer identifiers that are hard to guess.