POC -> 1. Authorize via URL repo, swap body owner_id. 2. Modify another repo's bypass_reviewers list. Learning -> - Authorize the exact object ID mutated, not URL. #BugBounty #VIEHResearch #bugbountytips
When testing an API that serves records by numeric ID, try lowering the ID in a request to see if it returns other users' records. This can reveal an insecure direct object reference (IDOR) if the API checks only that the caller is logged in, not that the record belongs to the c…
When testing a Rails application, try using the unscoped method to bypass default scopes. This can help you identify potential IDORs (Insecure Direct Object References) by removing tenant boundaries or other authorization checks. Look for instances where unscoped is used to bypa…
"IDORs are easy"... until you actually hunt them. Finding them takes patience and a deep understanding of how the app handles users and permissions. #BugBounty #IDOR #BugBountyTips
When testing API endpoints, try to access resources that should belong to other users or organizations by modifying the organization_id or similar parameters in the request. If the endpoint returns data for other organizations, it may indicate an Insecure Direct Object Reference…
When testing a target like target.com, try updating your profile with a modified externalId field set to another user's ID, such as an admin's ID, and a new password. If the update is successful and you can log in as the targeted user, it may indicate an Insecure Direct Object R…
To test for Insecure Direct Object Reference (IDOR) vulnerabilities, try modifying id, user_id, account_id, and other object identifiers in requests to see if the application properly checks ownership and permissions. Use tools like Burp Suite to intercept and repeat requests, a…
When testing an endpoint that accepts a JSON object, try adding an internal identifier field to the object to see if it influences which record is updated. Send a request with a new reference and the identifier of an existing record to check if the server updates the existing re…
When a target has a mobile app and web API, try to find endpoints that handle the same data. If the mobile app provides an identifier, such as a review_id, test whether the web API accepts it. Use a tool like a proxy to capture the mobile app's request, extract the identifier, a…
curl -sk -X POST "https://target.com/api/Usuario/GetUsuarios" \ -H "Content-Type: application/json" \ -d '{"ID":<target_id>, "Token":<auth_token>}'
Insecure direct object reference (IDOR): how to hunt it
Where to look
- Sequential numeric IDs, but also UUIDs and hashes that leak elsewhere in the app or its API.
- Write actions (update, delete, invite, export) as well as reads, in every API version of the same endpoint.
- IDs inside JSON bodies, GraphQL variables, file paths and signed URLs.
- Two accounts of your own, swapping their identifiers in every request.
What proves it
With two test accounts you own, show account A reading or changing account B’s object, and explain how an attacker would learn the identifier.
Read further
Writeups on Insecure direct object reference (IDOR), by hunters and researchers, most with a short summary.
Related classes