Field manual · BAC · Chapter 1
The Authorization Matrix
Your actual hunting map
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.
1.1 Build The Role Tree
Section titled “1.1 Build The Role Tree”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 / superadminNot 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.
1.2 The Endpoints Others Never Find
Section titled “1.2 The Endpoints Others Never Find”Where does the endpoint list come from?
- 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)
- Crawl as admin somehow, free trials with admin, industries with demo accounts, or… the JS files. The frontend knows every route:
grep -rEho '"/[a-zA-Z0-9_/-]+"' js-bundle/*.js | sort -ugrep -rE "router|routes|path:" js-bundle/*.js- 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 debugroutes,/actuator/*(Spring Boot!),/.well-known/*endpoints
- Wordlists for the stubborn:
ffuf -w SecLists/Discovery/Web-Content/raft-large-words.txt \ -u https://target.com/admin/FUZZ -mc 200,403ffuf -w SecLists/Discovery/Web-Content/api/objects.txt \ -u https://target.com/api/v1/FUZZ -mc 200,403,405Pay 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.
Open local graph around this page
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.