Skip to content

Field manual · BAC · Chapter 8

Where BAC Hides in Weird Places

The exotic biomes

2 min readBroken Access Control

Chapter 8: where BAC hides in weird places: the exotic biomes

Section titled “Chapter 8: where BAC hides in weird places: the exotic biomes”

Why care: these surfaces are the ones scanners and junior reviewers skip, which makes them some of the highest-yield spots left to test by hand.

8.1 The debug/internal toggles: the ?debug=1 family

Section titled “8.1 The debug/internal toggles: the ?debug=1 family”
GET /api/users/me → normal
GET /api/users/me?debug=1 → verbose PII + internal user ID + tenant keys
GET /api/orders/1042?internal=1 → internal view (support's "extra fields")
GET /api/users?format=raw → raw record (no field whitelisting)

Internal/debug view parameters give data the UI filters, as a standard user. Cheap to test, frequently forgotten by devs (it’s “just a debug flag”).

SaaS billing usually gates premium features server-side. Sometimes not:
GET /api/reports/premium?plan=pro as free-tier user
POST /api/exports/csv (a paid feature, check your tier after)

Test the server-side enforcement of everything the pricing page promises. The pricing page’s claims = a gifted endpoint checklist of what should be blocked for your tier.

Mobile clients often run “internal-only” APIs (/mfa/verify, /internal/session-refresh). Mobile is compiled, so devs feel safer. But you can proxy the app through Burp, and those “internal” calls are plain HTTP with your standard-user token. The mobile API often shares the web backend but skips the web’s authz middleware (route namespace separation). Mobile-first hunting finds a lot of BAC.

8.4 Multi-tenant boundary (the SaaS goldmine: again)

Section titled “8.4 Multi-tenant boundary (the SaaS goldmine: again)”

Vertical, horizontal, and cross-tenant combine:

tenant_id in your JWT: 42
request body: {"tenant_id": 43} — override wins? cross-tenant access
/orgs/42/users — with your token, `/orgs/43/users`?

Object-level (IDOR), route-level, and tenant-level, the matrix gets a third axis. Enterprise targets with per-tenant pricing (support plans per tenant, admin per tenant) pay well here. A cross-tenant vertical escalation means a user of tenant A gains admin of tenant B. The customer who owns tenant B will not take that lightly.

/api/mobile/login, /api/sso/login, /api/legacy/login, /api/service/login

Multiple login flows = multiple session-creation paths with different claims/roles. The SSO flow sets role: standard; the mobile flow misses trimming scopes; the legacy path doesn’t even have roles. Test which login door produces the most privileged token, then walk through the least-protected one with the most-privileged badge.

Upload endpoints and file stores belong on this list too. When access depends on a stored file’s path or how the server serves it, see the file-upload guide’s storage and serving chapter.

Next step: Chapters 9-10 cover turning any of these findings into a report that gets paid, plus the full laminated checklist.

Connections2 backlinks · 1 outgoing · 1 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.