Skip to content

Part 03

Methodology: Hunting at Scale

3 min readBroken Access Control

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.

  1. Scope check. Read the program scope. List in-scope domains, mobile apps, APIs, subdomains. Note explicit exclusions.
  2. Subdomain enumeration. subfinder -d target.com, amass, assetfinder, certificate transparency (crt.sh). Pipe to httpx for liveness.
  3. Tech fingerprinting. wappalyzer, whatweb, nuclei -t technologies/. Identify framework (Rails, Spring, Django, Express, Next.js, etc.), your attack surface depends on it.
  4. JS bundle extraction. getJS, linkfinder, jsluice. Extract every URL, every API path, every secret-shaped string. Build a target-specific wordlist.
  5. API docs hunt. /swagger, /openapi.json, /docs, /redoc, /api-docs, /graphql, /v1/api-docs, /actuator/mappings.
  6. Wayback & archived endpoints. waybackurls, gau, historical endpoints often still work and often aren’t role-gated because they predate the role model.
  7. GitHub recon. Search for the company’s name, internal endpoints, leaked tokens. github-dorks, trufflehog.
  8. Mobile & thick-client capture. Proxy the mobile app through Burp/mitmproxy (bypass SSL pinning with objection / Frida where 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.

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.

  1. 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.
  2. Walk the app as B. Burp on. Trigger every action. Catalog every request. Tag identifiers.
  3. Build the endpoint inventory. Combine walked traffic, JS extraction, wordlist discovery, OpenAPI. Deduplicate; categorize by resource and action.
  4. 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.
  5. Method matrix. For each endpoint, try every HTTP method (GET/POST/PUT/PATCH/DELETE/HEAD/OPTIONS) and every override header.
  6. Bypass layer. If you hit a 401/403, run the bypass playbook: path tricks, header tricks, cache games, race conditions.
  7. 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.
Connections2 backlinks · 5 outgoing · 5 cross-guideFull graph →
Open local graph around this page
Open full graph →
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.