Skip to content

10 · Closeout

Practice & Resources

8 min readIDOR Hunting

Practice on legal targets before you hunt live ones. Every link below is worth your time; everything else is noise.

  • PortSwigger Web Security Academy. Access Control (Lab · free). Thirteen labs covering IDOR, vertical/horizontal escalation, header-based bypass, method tampering, multi-step flaws. Includes the unpredictable-ID lab, where the GUID is leaked from another page rather than brute-forced. The Academy’s mass-assignment lab is the sibling exercise. The single best starting point.
  • HackTheBox Academy, API Attacks & Bug Bounty Hunter path (Lab · paid). Structured curriculum with hands-on machines. The API track in particular has strong IDOR/BOLA labs.
  • crAPI (Completely Ridiculous API) (Lab · free). OWASP’s intentionally-vulnerable API lab. Multiple BOLA scenarios, GraphQL endpoint, mobile-style API surface. Run locally in Docker.
  • VAmPI (Lab · free). Vulnerable REST API in Python, BOLA, BFLA, mass assignment. Tiny footprint, ideal for testing tooling.
  • Damn Vulnerable GraphQL Application (DVGA) (Lab · free). The standard GraphQL practice target, introspection, aliasing, batching, IDOR, injection. Walk through every challenge.
  • PentesterLab (Lab · free). Smaller-scope, very targeted exercises. Their Access Control / API series complements PortSwigger nicely.
  • OWASP API Security Top 10 (2023), read BOLA (API1), BOPLA (API3), and BFLA (API5) closely; they’re the whole taxonomy
  • OWASP Web Security Testing Guide (WSTG), particularly the authorization, API, and GraphQL chapters
  • OWASP GraphQL Cheat Sheet, the defender’s checklist, read offensively (batching limits, field suggestions, introspection)
  • “Hacking APIs” by Corey Ball, the current standard text for API/BOLA testing; pairs directly with crAPI
  • PortSwigger Web Security Academy & Research blog, the access-control/JWT/GraphQL topics, plus the research that pioneered most modern techniques
  • GraphQL Threat Matrix, per-engine defense/CVE reference; the companion to graphw00f
  • RFC 9562 §6.9, the UUID spec’s own “don’t use these as security capabilities” clause; cite it when programs wave away UUID-based IDOR
  • HackerOne Hacktivity, filter by “Improper Access Control” and “IDOR”; read 20 disclosed reports back-to-back
  • Disclosed reports to study by name: H1 #291531 (GraphQL aliased IDOR PII), #1064543 (GitLab introspection → admin mutations), #1016122 (alias rate-limit bypass), and #1987489 (BFLA mass enumeration). Also read Sam Curry’s automotive-portal writeups (web.archive-worthy)
  • “Web Application Hacker’s Handbook 2” by Stuttard & Pinto, dated in places but the access-control chapter is still essential reading
  • @Rhynorater. Critical Thinking podcast; broad bug-bounty methodology
  • @NahamSec, recon-heavy, lots of methodology streams
  • @stokfredrik, practical write-ups and walkthroughs on YouTube
  • @bagipro / @samwcyo, write-ups that show how chained access-control bugs become criticals
  • @bnchandrapal, frequent GraphQL/API findings
  • @nullenc0de, recon & access-control content
  • SecLists/Discovery/Web-Content/api, endpoint discovery
  • SecLists/Discovery/Web-Content/burp-parameter-names.txt. Param Miner and Arjun fodder
  • assetnote/wordlists, high-signal modern wordlists curated for active recon
  • SecLists/Fuzzing/User-Agents, sometimes a different UA gives a different code path

Same missing ownership check. The address is what changed. Detail for each row is in the section named here.

Surface The request Why it pays
Next.js middleware x-middleware-subrequest: middleware Skips matcher-protected auth redirects. CVE-2025-29927. Section 04.
Server Action Next-Action: <hash> plus a form body Calls a hidden server function with any argument. Section 04.
RSC flight GET /?_rsc=... Leaks props and action ids. Section 04.
'use cache' A requests, B requests the same URL The cache key omits the user. Section 06.
tRPC batch /api/trpc/invoice.byId?batch=1&input=... N resolutions, one rate-limit token. Section 04.
tRPC role protectedProcedure on an admin mutation Authentication is not authorization. CVE-2025-59305. Section 04.
tRPC pollution __proto__[isAdmin]=true Process-wide auth bypass. CVE-2025-68130. Section 04.
Supabase GET /rest/v1/<table>?select=* with the anon key RLS is the only check. Section 02.
Supabase RPC POST /rest/v1/rpc/<fn> SECURITY DEFINER with no internal check. Section 02.
PostgREST .or() Inject , ( ) . Widens the filter to the table. Section 02.
Firebase collectionGroup('invoices') Every subcollection, every tenant. Section 02.
Firestore rules allow read: if request.auth != null Any signed-in user reads the match. Section 02.
Hasura x-hasura-role: admin Headers trusted over the JWT. Section 02.
Federation _entities(representations: [...]) Fetch any keyed object. Section 05.
Subgraph Direct /_graphql Router @authenticated is not there. Section 05.
@requires A protected field reached through a requirement Transitive access-control gap. GHSA-m8jr-fxqx-8xx6. Section 05.
MCP resource resources/read with a foreign URI File, S3, or database object, fetched with server credentials. Section 06.
MCP session Forge Mcp-Session-Id default-insecure-seed in a Helm chart. Section 06.
MCP OAuth Token for server A replayed at server B No aud check. RFC 8707 missing. Section 06.
MCP tool execute_sql / get_document(id) Tool-level BOLA with service credentials. Section 06.
CDN cache A, then B, then anonymous, same URL X-Cache: HIT with A’s body. Section 06.
Header overflow Auth header after 100 junk headers WAF and cache rules do not see it. Section 06.
Smuggling OPTIONS + Expect: 100-continue + obs-fold (obsolete multi-line header folding) Reaches an internal or auth-free path. CVE-2025-32094. Section 06.
Export job POST /api/exports then GET /api/exports/{jobId} Worker runs as service and returns a signed URL. Section 03.
Idempotency Idempotency-Key set to B’s key Returns B’s cached response. Section 03.
Signed URL POST /api/files/{B}/download-url The URL is the exfil. No session needed to fetch it. Section 03.
Domain join POST /api/orgs {"domain":"..."} Auto-join by email domain. Section 02.
Invite token POST /api/invites/{token}/accept Token not bound to the invited email. Section 02.
Parser id=01, id[]=1, duplicate JSON keys Auth and handler disagree. Section 04.
JSON Patch [{"op":"replace","path":"/owner_id","value":42}] Mass assignment through another binder. Section 04.
Sub-resource /comments/{id}/attachments/{att} Parent checked, child not. Section 06.
Share edge POST /api/share {"documentId": <B>} The write is the takeover. Section 06.

Print-and-tape-to-monitor edition

  • Two accounts live, both populated with distinguishable data (plus cross-tenant if the app allows it)
  • Burp/Caido + Autorize running; test four identities, owner, same-tenant other, cross-tenant other, and fully unauthenticated. Hash-diff status, length, body, X-Cache, Age, ETag
  • Recon the surface, source maps (.js.map), archived URLs, Swagger/GraphQL, hidden params (arjun)
  • For every endpoint: swap the ID. Path, query, body, header, cookie, JWT claim.
  • For every endpoint: swap the method. GET, POST, PUT, PATCH, DELETE, HEAD, FOO.
  • Decode the ID first, base64? hashid? MongoDB ObjectID? UUIDv1? Predict before you enumerate.
  • For every blocked endpoint: path-normalization (slash, dot, encoding, extension) + header bypasses (X-Original-URL, X-Forwarded-For=127.0.0.1).
  • For every blocked endpoint: send the ID in two places (self in path, victim in body) + array/object/type-confused values.
  • For every UUID/random ID: hunt where it leaks publicly before giving up.
  • GraphQL? Fingerprint → introspection/Clairvoyance → aliased batch → nested fields → node() → fragments → mutations.
  • No data echoed? Check for blind IDOR via side effects and status-code oracles.
  • Found one? Check the chain, ATO, mass extraction, cross-tenant, mass assignment? Score it in CVSS 4.0.
  • Decoded base64, base62, rot13, and custom alphabets before calling an ID unguessable
  • Every /me route has been tried as an ID-bearing sibling
  • GET, then PATCH, then DELETE (policy permitting) with the victim id, on your own second account
  • List and search endpoints checked for other people’s ids, and id_sources.md is started
  • Mobile API tested as its own codebase
  • File, CDN, and object-storage URLs tried by changing the number
  • WebSocket subscriptions tried with the other account’s channel or object id
  • Admin routes attempted as a normal user
  • Mass assignment tried, including {"role":"admin"} on your own user
  • Response table written down: 200, 403, 404, empty 200, 500. The 404-that-is-a-403 included.
  • Ladder climbed: read, scale, sensitivity, write, vertical, takeover
  • Report readable by a tired triager on the first pass, with the chain drawn
  • BaaS anon key tried against select=*, RPC, and a five-row write on your second account. No service_role dump
  • Server Action hash and tRPC procedure replayed with the other account’s id
  • Jobs and signed URLs polled, then fetched with no session
  • Cache headers compared across the four identities
  • Program policy re-read: no deleted production rows, no brute force, no prank emails, no SMS to real users, no smuggling unless the program allows it
  1. One ID-format dossier per target. Every identifier, which objects use it, where it leaks, how it is encoded. That file becomes the map.
  2. Test write on every read IDOR, even when you will not mass-edit. Whether write exists is the severity claim.
  3. Mobile, separately, every engagement. It is a different codebase no matter what the marketing site shows.
  4. Say the check out loud. Authorization is per request, per object, including writes and including the tenant boundary.
  5. 30 minutes of sibling hunting after every confirmation. File the cluster together.
  6. Put the impact chain in the report as a picture, not as a paragraph the triager has to reconstruct.

Next step: print the one-page cheatsheet and keep it beside you on your next hunt.

Connections5 backlinks · 1 outgoing · 2 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.