Skip to content

01 · Foundations

Recon & Target Selection

3 min readIDOR Hunting

IDORs are an authorization-logic class, they only appear where there’s data to access. Your recon job is to find the data-shaped surface area as fast as possible.

Not all programs are equal. For IDOR hunting specifically, prefer:

  • Apps with multi-tenant or per-user data. CRMs, project trackers, healthcare portals, banking, e-commerce, BI dashboards, file-sharing
  • Apps with rich API surface. REST/GraphQL/internal APIs visible to authenticated users
  • Apps that allow you to create two accounts, same plan, same org, ideally different orgs/tenants
  • Newer programs or recently-shipped features, check the program’s “recently launched” or “scope changes” log

You want to discover every endpoint the app exposes, especially the ones the official frontend doesn’t use anymore. This section is a short IDOR-focused pass. The Recon Atlas covers subdomain, JavaScript, and parameter pipelines phase by phase.

  1. Spider with two browsers. Two profiles (or browsers) authenticated as two different users. Burp Suite recording in the background. Click everything in both accounts.
  2. Pull every JavaScript bundle. Use getJS, katana, or a Burp extension to enumerate .js files. Then run LinkFinder / SecretFinder / jsluice over them. They extract endpoints, parameter names, internal API hostnames, and AWS-style identifiers.
  3. Hit common API doc paths. /swagger, /swagger-ui, /api-docs, /openapi.json, /v2/api-docs, /graphql, /graphiql, /altair, /playground, /redoc. A leaked Swagger spec is an IDOR map.
  4. Search archived versions. web.archive.org and Common Crawl frequently expose old endpoints that the current frontend doesn’t link to but the backend still serves.
  5. Wordlist-fuzz hidden endpoints. ffuf or feroxbuster with SecLists’ API wordlists (api/objects.txt, api/api-endpoints.txt), then narrow on 401/403/200 anomalies.
  6. Check mobile. Decompile the Android APK (apktool d app.apk) and grep for base URLs and endpoint strings. Mobile clients routinely use endpoints the web app no longer references but which still ship full responses.

Mine the source maps (the highest-ROI recon trick)

Section titled “Mine the source maps (the highest-ROI recon trick)”

Modern single-page apps (SPAs) ship minified JavaScript. Many also ship .js.map source maps next to it, the files browser devtools use to show original source while debugging. Source maps left in production are extremely common. One hands you the app’s original, un-minified source tree: every fetch() call site, internal endpoint path, parameter name, feature flag, and sometimes hardcoded config. Look for //# sourceMappingURL= at the bottom of each bundle, or just append .map to the bundle URL and see if it 200s.

Reconstruct the original source from a bundle (RECON)

Terminal window
# Go: auto-detects sourceMappingURL, rebuilds the source tree
sourcemapper -url https://target.com/static/js/main.abc123.js -output ./src
# Python: --detect crawls the page's <script> tags and pulls every .map it finds
unwebpack-sourcemap.py --detect https://target.com/ ./src
# then grep the recovered source for the IDOR-shaped surface
grep -rEho "/api/[a-zA-Z0-9/_{}.-]+" ./src | sort -u
grep -rEon "[a-zA-Z_]+(Id|_id|Uuid|Token|Key)" ./src | sort -u

A fast, repeatable sweep to enumerate the data-shaped surface. Scope every command to authorized targets only.

Endpoint & parameter enumeration (RECON)

Terminal window
# 1. Every historical URL ever archived (Wayback, CommonCrawl, OTX, URLScan)
gau target.com | tee all-urls.txt
waymore -i target.com -mode U # -mode R also downloads archived response BODIES
# 2. Crawl live + classify the API surface (REST / GraphQL / SOAP)
katana -u https://target.com -jc -kf all -kb-endpoints -o katana.txt
# 3. Extract endpoints & secrets from JS with a real parser (not regex)
cat js-urls.txt | jsluice urls | jq -r .url | sort -u
cat js-urls.txt | jsluice secrets
# 4. Discover hidden ID-bearing parameters the UI never shows
arjun -u https://target.com/api/v2/account -m GET,POST-JSON
# 5. Probe common API-doc & schema paths
ffuf -u https://target.com/FUZZ -w swagger-paths.txt \
-mc 200,401,403 -fs 0 # /swagger.json /openapi.json /graphql /v2/api-docs …

Next step: spot the object references in the traffic you just collected.

Connections4 backlinks · 6 outgoing · 7 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.