IDOR
IDOR stands for Insecure Direct Object Reference and is a type of access control vulnerability.
This type of vulnerability can occur when a web server receives user-supplied input to retrieve objects (files, data, documents), too much trust has been placed on the input data, and it is not validated on the server-side to confirm the requested object belongs to the user requesting it.
Example
Imagine you've just signed up for an online service and you want to change your profile information. The link you click on goes to http://online-service.thm/profile?user_id=1305, and you can see your information.
Curiosity gets the better of you, and you try changing the user_id value to 1000 instead (http://online-service.thm/profile?user\_id=1000), and to your surprise, you can now see another user's information. You've now discovered an IDOR vulnerability. Ideally, there should be a check on the website to confirm that the user information belongs to the user requesting it.
Finding It
We can manipulate this information by opening developer tools and monitoring the network tab on an account page:
Here we can see that prefilled information about my test username and email is pulled from an endpoint located at /api/v1/customer?id=. We can plug in other IDs and see what comes up.