Part 03
Methodology: Hunting at Scale
Random testing finds random bugs. A repeatable methodology finds the same flaws every time and scales across targets. Here is the workflow professional BAC hunters use.
Phase 1: Recon & Endpoint Mapping
Section titled “Phase 1: Recon & Endpoint Mapping”- Scope check. Read the program scope. List in-scope domains, mobile apps, APIs, subdomains. Note explicit exclusions.
- Subdomain enumeration.
subfinder -d target.com,amass,assetfinder, certificate transparency (crt.sh). Pipe tohttpxfor liveness. - Tech fingerprinting.
wappalyzer,whatweb,nuclei -t technologies/. Identify framework (Rails, Spring, Django, Express, Next.js, etc.), your attack surface depends on it. - JS bundle extraction.
getJS,linkfinder,jsluice. Extract every URL, every API path, every secret-shaped string. Build a target-specific wordlist. - API docs hunt.
/swagger,/openapi.json,/docs,/redoc,/api-docs,/graphql,/v1/api-docs,/actuator/mappings. - Wayback & archived endpoints.
waybackurls,gau, historical endpoints often still work and often aren’t role-gated because they predate the role model. - GitHub recon. Search for the company’s name, internal endpoints, leaked tokens.
github-dorks,trufflehog. - Mobile & thick-client capture. Proxy the mobile app through Burp/mitmproxy (bypass SSL pinning with
objection/Fridawhere the program permits). Mobile and desktop clients routinely talk to a broader, older API surface than the web app, and it’s frequently less authz-tested. See §5.4.
Phase 2: The Authorization Matrix
Section titled “Phase 2: The Authorization Matrix”This is the single most useful artifact in BAC hunting. Build a table with roles on the X axis and endpoints on the Y axis. Mark intended access; then test actual access.
| Endpoint | Anon | User A | User B | Admin | Notes |
|---|---|---|---|---|---|
GET /api/users/B |
403 | 200 ✗ | 200 ✓ | 200 ✓ | IDOR. A reads B |
POST /api/admin/users |
403 | 403 ✓ | 403 ✓ | 200 ✓ | OK |
PATCH /api/users/me |
403 | 200 ✓ | 200 ✓ | 200 ✓ | Mass-assign role? Test. |
DELETE /api/teams/X |
403 | 200 ✗ | 403 ✓ | 200 ✓ | A not on team X, destructive |
Build this table even informally, even a spreadsheet. Patterns jump out: endpoints where a single column breaks the pattern are bug candidates.
Phase 3: The 7-Phase Hunting Workflow
Section titled “Phase 3: The 7-Phase Hunting Workflow”- Provision the lab. Two accounts minimum (A and B), ideally one of every role the app exposes (free, paid, admin, support, guest, viewer, member, owner). Two browsers / two Burp sessions side by side.
- Walk the app as B. Burp on. Trigger every action. Catalog every request. Tag identifiers.
- Build the endpoint inventory. Combine walked traffic, JS extraction, wordlist discovery, OpenAPI. Deduplicate; categorize by resource and action.
- For each endpoint, run the four lenses.
- Anon: send with no session.
- Low-priv: send as a different user (A) targeting B’s resources.
- Cross-tenant: send as a user in another org targeting B’s org.
- Field-level: include extra fields (
role,tenant_id,is_admin) and see what sticks.
- Method matrix. For each endpoint, try every HTTP method (GET/POST/PUT/PATCH/DELETE/HEAD/OPTIONS) and every override header.
- Bypass layer. If you hit a 401/403, run the bypass playbook: path tricks, header tricks, cache games, race conditions.
- Triage & PoC. For every confirmed finding, write a clean reproducer (curl / Repeater) that demonstrates impact. Then escalate: chain with other bugs, increase blast radius, calculate the financial/data impact.
Related testing workflows
Section titled “Related testing workflows”- Combine with object-level enumeration from IDOR methodology.
- Pull fresh test targets from Recon Atlas: Access control testing.
- Check non-HTTP surfaces in WebSocket bug families and Business Logic.
Open local graph around this page
Click a node to open · Drag to reposition · Scroll to zoom
Broken Access ControlFor authorized security research only: bug bounty programs, your own systems, or scoped engagements with written permission.