Tips

Insecure direct object reference (IDOR) tips

An insecure direct object reference lets one user read or change another user’s data by changing an identifier. The server trusts the ID in the request instead of checking that the record belongs to the caller.

Published tips, newest first. Payloads and commands are shown as plain text.

  • GitHub ES IDOR -> Cross-Repo Reviewer Tampering

    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

    Insecure direct object reference (IDOR)Exploitation

  • Test for IDOR via sequential IDs

    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…

    Insecure direct object reference (IDOR)Discovery

  • Test default scopes for bypass

    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…

    Insecure direct object reference (IDOR)Discovery

  • Bug bounty tip

    "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

    Insecure direct object reference (IDOR)Discovery

  • Test API endpoints for IDOR

    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…

    Insecure direct object reference (IDOR)Discovery

  • Test profile updates for IDOR

    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…

    Insecure direct object reference (IDOR)Discovery

  • Test Object References For IDOR

    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…

    Insecure direct object reference (IDOR)Discovery

  • Test JSON objects for IDOR

    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…

    Insecure direct object reference (IDOR)Discovery

  • Test APIs for IDOR via mobile app

    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…

    Insecure direct object reference (IDOR)Discovery

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