Skip to content

Field manual · BAC · Chapter 1

The Authorization Matrix

Your actual hunting map

3 min readBroken Access Control

Chapter 1: the authorization matrix: your actual hunting map

Section titled “Chapter 1: the authorization matrix: your actual hunting map”

Why care: a matrix finds every missed check in one pass instead of one endpoint at a time. Amateurs hunt bug-by-bug. You will hunt by building the authorization matrix, the true attack surface document.

Roles on a typical target (discovered via docs, JS, registration flows):
Anonymous
Registered user (standard user)
Premium/paid user
Team member -- Team admin
Support agent
Platform admin / superadmin

Not all targets have all roles. But most real targets (SaaS, e-commerce, fintech) have at least 3. Your job: for each role × endpoint × method combination, fill a matrix of who’s allowed and compare to who actually gets let in:

Endpoint Standard user Premium Support Admin
GET /api/users/me Yes Yes Yes Yes
GET /api/users/1042 ? ? ? ?
POST /api/users/1042/impersonate ? ? ? ?
DELETE /admin/users/1042 ? ? ? ?
POST /api/support/tickets/884/reply ? ? Expected Expected
GET /api/admin/audit-log ? ? ? Expected

Every ? in that matrix is a possible check the developer skipped. There are always more of them than you think.

Where does the endpoint list come from?

  1. Crawl the app as every role you can access (register as a standard user; if a company program gives you a support trial, use it)
  2. Crawl as admin somehow, free trials with admin, industries with demo accounts, or… the JS files. The frontend knows every route:
Terminal window
grep -rEho '"/[a-zA-Z0-9_/-]+"' js-bundle/*.js | sort -u
grep -rE "router|routes|path:" js-bundle/*.js
  1. Pull routes out of frameworks:
    • React/Vue: usually sitting in a routes array in a bundle
    • Older sites: sitemap.xml, robots.txt (Disallows are a menu of admin paths)
    • Swagger/OpenAPI if exposed: /swagger.json, /api-docs, /openapi.yaml, literally the entire API in one file
    • debug routes, /actuator/* (Spring Boot!), /.well-known/* endpoints
  2. Wordlists for the stubborn:
Terminal window
ffuf -w SecLists/Discovery/Web-Content/raft-large-words.txt \
-u https://target.com/admin/FUZZ -mc 200,403
ffuf -w SecLists/Discovery/Web-Content/api/objects.txt \
-u https://target.com/api/v1/FUZZ -mc 200,403,405

Pay close attention to 405 Method Not Allowed, it leaks that the path EXISTS, even though your account cannot use it yet. A 404 means the path does not exist; a 403 means the path exists but your session is refused; a 405 means the path exists and the server recognizes it, but not for the HTTP verb you sent. Getting a 405 instead of a 404 on an admin path confirms it is live. Then try every method on that path (see Chapter 5).

1.3 Two accounts minimum: always vertical and horizontal

Section titled “1.3 Two accounts minimum: always vertical and horizontal”

This guide’s convention: Account A / Alice is the attacker, and Account B / Bob is the victim. Here, both start as standard users so you can test both directions:

  • Account A (Alice): standard user, plays the attacker
  • Account B (Bob): a second standard user, this catches horizontal/IDOR-style bugs
  • Account C: whatever elevated role you can legitimately obtain (free trial admin, team admin of your own team, support-desk trial)

Now replay every request that passed through A/C with the sessions of the other two. Cheap tools:

  • Burp Autorize / Auth Analyzer extension: browse as Admin, replay everything as a standard user; anything that returns admin-limited content with standard-user cookies lights up green.
  • This is also your startup ritual: no target is “started” until all roles are crawling side by side.

Next step: with the matrix drawn, climb it. Chapter 2 covers the five ways vertical privilege escalation actually happens.

Connections2 backlinks · 0 outgoingFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Links out to

No outgoing internal links on this page.

Broken Access ControlFor authorized security research only: bug bounty programs, your own systems, or scoped engagements with written permission.