01 · Foundations
Recon & Target Selection
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.
Picking a program
Section titled “Picking a program”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
Mapping the data surface
Section titled “Mapping the data surface”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.
- Spider with two browsers. Two profiles (or browsers) authenticated as two different users. Burp Suite recording in the background. Click everything in both accounts.
- Pull every JavaScript bundle. Use
getJS,katana, or a Burp extension to enumerate.jsfiles. Then runLinkFinder/SecretFinder/jsluiceover them. They extract endpoints, parameter names, internal API hostnames, and AWS-style identifiers. - 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. - Search archived versions.
web.archive.organd Common Crawl frequently expose old endpoints that the current frontend doesn’t link to but the backend still serves. - Wordlist-fuzz hidden endpoints.
ffuforferoxbusterwith SecLists’ API wordlists (api/objects.txt,api/api-endpoints.txt), then narrow on 401/403/200 anomalies. - 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)
# Go: auto-detects sourceMappingURL, rebuilds the source treesourcemapper -url https://target.com/static/js/main.abc123.js -output ./src
# Python: --detect crawls the page's <script> tags and pulls every .map it findsunwebpack-sourcemap.py --detect https://target.com/ ./src
# then grep the recovered source for the IDOR-shaped surfacegrep -rEho "/api/[a-zA-Z0-9/_{}.-]+" ./src | sort -ugrep -rEon "[a-zA-Z_]+(Id|_id|Uuid|Token|Key)" ./src | sort -uA copy-paste recon pass
Section titled “A copy-paste recon pass”A fast, repeatable sweep to enumerate the data-shaped surface. Scope every command to authorized targets only.
Endpoint & parameter enumeration (RECON)
# 1. Every historical URL ever archived (Wayback, CommonCrawl, OTX, URLScan)gau target.com | tee all-urls.txtwaymore -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 -ucat js-urls.txt | jsluice secrets
# 4. Discover hidden ID-bearing parameters the UI never showsarjun -u https://target.com/api/v2/account -m GET,POST-JSON
# 5. Probe common API-doc & schema pathsffuf -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.
Related recon phases
Section titled “Related recon phases”- Extract hidden endpoints from bundles in Phase 09: JavaScript analysis and Phase 10: Parameter discovery.
- Calibrate fuzzing against SPAs in SPA calibration.
- Run the 50+ test IDOR checklist on every new endpoint you uncover.
Open local graph around this page
Linked from here
IDOR HuntingFor educational and authorized bug bounty use only.