Skip to content

In-depth lesson · bug class

Insecure direct object reference (IDOR)

What every disclosed IDOR report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
1,655

Learning IDOR reading list Beginner web, step 2APIs and access control, step 1Mobile apps, step 5

Overview

What it is and why programs pay for it.

Insecure direct object reference, usually shortened to IDOR, is a class of access control bug where an application takes an identifier from the client and uses it to fetch or change a record without checking that the caller is allowed to touch that record. The identifier can be a number, a UUID, an email address, a filename or a value hidden inside a cookie or token. The common thread is that the server trusts the client to say which object it wants and never confirms ownership against the authenticated session. This pattern appears across web apps, mobile backends, GraphQL APIs and file storage, and it is one of the most frequently reported issues in the dataset behind this lesson.

Programs care about IDOR because it breaks the core promise that one user cannot read or alter another user's data. The impact ranges from privacy leaks such as names, emails and addresses, through exposure of financial records and invoices, to full account takeover when a profile update or password reset flow accepts a swapped user identifier. In several reports the same missing ownership check allowed deletion of another user's content or account, which turns a read-only bug into destructive action. Because the flaw is often a single missing check on an otherwise authenticated endpoint, it is cheap to test and easy to demonstrate with two accounts.

The most common places to find IDOR are endpoints that take an object identifier directly: profile and settings updates, delete handlers for files, images, comments and accounts, order and invoice lookups, multi-tenant APIs that accept a tenant or organisation identifier, and GraphQL queries or mutations with an id argument. It also shows up in mobile app APIs reached after certificate pinning bypass, in minified JavaScript bundles that reveal unlinked internal endpoints, and in password reset flows that carry a user identifier in the request. Sequential numeric identifiers and predictable filenames make discovery easier, but even UUIDs can be vulnerable when they are the only secret and never expire.

How it works

The mechanics, as the reports show them.

Conceptually, the application receives a request that names an object, for example a user id in a path, a file id in a query string, or an object id in a JSON body. The server looks up that object by the supplied identifier and returns it or acts on it. The bug appears when the lookup is not paired with an authorisation check that compares the object's owner or tenant against the authenticated session. The server may have validated the session token, but it never asks whether this particular caller is entitled to this particular object.

This is possible because developers often treat authentication as sufficient. They check that a token is valid and then trust any identifier the client sends, especially when the identifier is numeric, sequential or derived from predictable information. In GraphQL the same mistake appears in resolvers: a root query may be protected while nested field resolvers return related objects without checking the caller's permission on those objects. In multi-tenant systems the check may compare the caller's organisation to the request only at the top level, leaving nested or bulk operations unchecked.

A second common cause is taking the acting user's identity from a client-controlled field rather than from the server-side session. If a profile update endpoint reads a user id from the request body or a cookie, an attacker can substitute another user's id and modify that account. The same pattern appears in password reset flows that carry a user identifier or token in the request, and in account deletion endpoints that authorise by a client-supplied JWT or a user id in the URL. The fix is always to derive the target from the authenticated session and then verify ownership of any object identifier before acting.

Predictable identifiers make the flaw easier to exploit but are not the root cause. Sequential numeric ids, timestamps in filenames and short guessable values allow enumeration, yet the underlying mistake is still the missing ownership check. Even when identifiers are long and random, an attacker can obtain valid ones from public archives, code hosting searches or other endpoints that leak them. The presence of rate limiting or lockout on lookups reduces the practical impact but does not fix the authorisation gap.

The same weakness appears in delete handlers that remove objects by primary key without checking ownership, in bulk update and delete endpoints that accept a list of user ids, and in sharing or ACL features that accept user or object identifiers. In each case the server performs the operation on whatever identifier it receives. The step-by-step test is to create two accounts, capture a request that names an object belonging to one account, swap the identifier for the other account's object, and observe whether the server returns or modifies the second object.

Year by year

13 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 420
Reports per year
20131
20145
201517
201626
201728
201836
201955
202065
202162
202292
202363
2024202
2025376
2026420
  1. 2026

    420 reports · median $175

    New this year4

    • Cross-tenant access where the tenant check was present on read or update but missing on delete or mutation paths first appears clearly in the disclosed reports.
    • CVE write-ups of authorisation bypass through user-controlled keys in products such as Microsoft and OpenProject first appear in the disclosed reports.
    • AI copilots, assistants and AI-assisted scanning features first appear as a notable cluster where object-level checks are missing in the disclosed reports.
    and 1 more

    Kept working6

    • Object-level authorisation gaps on client-supplied identifiers dominated across web and API targets in the disclosed reports.
    • Sequential numeric identifiers that could be enumerated, alongside UUIDs leaked through other requests, were repeatedly exploited in the disclosed reports.
    and 4 more

    Turned up less1

    • The Wayback Machine recon cluster seen in 2025 is less prominent in the 2026 evidence, which shifts to AI features and tenant checks.
  2. 2025

    376 reports · median $5,375

    New this year3

    • Passive recon sources such as the Wayback Machine and VirusTotal used to find vulnerable URLs first appear as a substantial cluster in the disclosed reports.
    • Base64-encoded but unsigned identifiers in URLs and tokens being tampered with first appears as a notable pattern in the disclosed reports.
    • Editing a user identifier stored in browser local storage and refreshing to become another user appears as a new technique in the disclosed reports.

    Kept working6

    • Chaining an IDOR with a second flaw such as cross-site scripting, password reset weakness or token leakage reached account takeover in the disclosed reports.
    • Endpoints returned sensitive data with no authentication at all, not just missing ownership checks, in the disclosed reports.
    and 4 more

    Turned up less1

    • The JWT secret cracking seen in 2024 is less prominent in the 2025 evidence, which shifts to chained flaws and recon.
  3. 2024

    202 reports · median $1,830

    New this year3

    • JSON Web Tokens with weak signing secrets or trusted without binding to the session first appear as a notable cluster in the disclosed reports.
    • Using a metrics or swagger endpoint to leak all users' UUIDs and then replaying them against profile endpoints appears as a new pattern in the disclosed reports.
    • Inserting special path characters before your own user identifier to bypass a 403 before swapping in another user's identifier first appears in the disclosed reports.

    Kept working6

    • GraphQL endpoints where resolvers did not check project or object permissions were repeatedly exploited in the disclosed reports.
    • Predictable sequential or weakly random identifiers used as the only access control recurred across the disclosed reports.
    and 4 more

    Turned up less1

    • The custom identity header pattern seen in 2023 is less prominent in the 2024 evidence, which shifts to UUIDs and JWTs.
Every point, year by year

Where it is found

501

The features and places the reports found it in, most-reported first.

  1. GraphQL mutations and resolvers that take object identifiers from the client were a recurring place for IDOR.

    Seen in 12 reports
  2. Delete endpoints for images, files, folders, phone numbers, test cases and endpoint data were a common place for missing ownership checks.

    Seen in 7 reports
  3. Multi-tenant APIs that accept a tenant, workspace, cluster or organisation identifier from the client.

    Seen in 7 reports
  4. Account, profile and settings update endpoints that accepted another user's identifier.

    Seen in 6 reports
  5. File, image and media identifiers were used to fetch or delete other users' private content.

    Seen in 6 reports
View all 501

Root causes

977

The mistakes in the code or configuration behind the reports.

  1. Endpoints looked up records by a client-supplied identifier without checking that the caller owned or was authorised for that object.

    Seen in 70 reports
  2. Servers trusted client-supplied identifiers (numeric, sequential or email) and never checked that the authenticated user owned the referenced record.

    Seen in 11 reports
  3. The endpoint fetched the object by its identifier and returned it without checking that the object belonged to the authenticated user.

    Seen in 7 reports
  4. The endpoint looked up a record by the supplied identifier without checking that the authenticated user owned it.

    Seen in 7 reports
  5. Delete handlers removed objects by primary key without checking ownership.

    Seen in 6 reports
View all 977

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

Profile and account updates

of 3 ticked
  • Seen in 3 reports
  • Seen in 3 reports
  • Seen in 3 reports
More in Profile and account updates

Organisations and multi-tenant resources

of 3 ticked
More in Organisations and multi-tenant resources

Other

of 3 ticked
More in Other

User enumeration and identifier harvesting

of 3 ticked
More in User enumeration and identifier harvesting
View more things to try

Bypasses and variations

155

How reports got past filters, encoders and other defences.

  1. Decode a base64 identifier, change the inner JSON id value, re-encode it and send it in the same parameter.

    Seen in 5 reports
  2. Chaining an id leaked from one endpoint into an export or session endpoint reached data the first endpoint did not expose.

    Seen in 3 reports
  3. Enumerate identifiers below the visible range or in small predictable ranges to reach records not linked in the UI.

    Seen in 3 reports
  4. Adding whitespace, a trailing slash or a path traversal segment to an identifier got past a raw comparison in the authorisation check.

    Seen in 3 reports
  5. Misleading or differing error messages revealed whether an action succeeded or leaked object state.

    Seen in 2 reports
View all 155

Payouts

180 paid

Public bounties in US dollars, from the data. 180 of 1,761 reports show an amount.

a quarter paid up to
$500
median
$1,500
three quarters paid up to
$4,585
highest
$50k

One in ten paid reports was paid $10k or more.

SeverityReportsPaidMedianHighest
Critical 61 6 $18k $25k
High 95 10 $3,125 $15k
Medium 177 23 $500 $5,000
Low 54 15 $200 $2,500
Informational 7 0 None paid None
Unrated 1,367 126 $2,000 $50k

Typical fixes

185

How programs fixed it, as the reports describe.

  1. Derive the object owner from the authenticated session rather than trusting an ID supplied by the client.

    Seen in 7 reports
  2. Derive the target user from the authenticated session rather than accepting a user identifier from the request.

    Seen in 6 reports
  3. Check object ownership server-side against the authenticated session on every request, not just token validity.

    Seen in 6 reports
  4. Check that the requester is allowed to see the record identified by the client-supplied identifier.

    Seen in 5 reports
  5. Check authorisation in every GraphQL resolver and node lookup before returning an object by identifier.

    Seen in 5 reports
View all 185

Tips for beginners

14

Advice for a first hunt, drawn from the reports.

  1. Start with two accounts you control and map every request that carries an identifier: user id, file id, order number, tenant id, email address or token. Focus first on profile and settings updates, delete endpoints and order or invoice lookups, because these are the most common places for missing ownership checks and the impact is easy to show.

    Seen in 5 reports
  2. When an identifier looks encoded, decode it, change the inner value, re-encode it and send it back. Base64-wrapped ids and composite identifiers are common, and developers sometimes validate only part of the value, such as the last element of a comma-separated list or the GUID inside a Base64 string.

    Seen in 5 reports
  3. Remember that rate limiting and lockout are not fixes for IDOR. If you find an endpoint that returns another user's data by identifier, report the missing ownership check even if the identifiers are hard to guess. Conversely, if the only issue is that identifiers are enumerable but the server correctly checks ownership, that is not an IDOR and should not be reported as one.

    Seen in 5 reports
  4. For GraphQL, run introspection where it is available and test every query and mutation that takes an id argument. Pay particular attention to nested fields: a root query may be protected while a nested resolver returns private data for objects you do not own. Also look for hidden or unlinked GraphQL endpoints referenced in JavaScript bundles.

    Seen in 4 reports
  5. Test password reset and email change flows carefully. If a reset request carries a user identifier, try swapping it for another account's identifier while keeping a valid token. If a profile update endpoint lets you change an email address without the old password, change it to an address you control and then trigger a password reset to demonstrate account takeover.

    Seen in 4 reports
View all 14

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on IDOR, from around the web.

Keep learning

Where this lesson fits, and what to read next.

How this is made: our model read every listed IDOR report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 28 Nov 2026 from 1,761 reports. All IDOR reports.