Field manual · BAC · Chapter 8
Where BAC Hides in Weird Places
The exotic biomes
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 → normalGET /api/users/me?debug=1 → verbose PII + internal user ID + tenant keysGET /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”).
8.2 Feature-flag / entitlement widening
Section titled “8.2 Feature-flag / entitlement widening”SaaS billing usually gates premium features server-side. Sometimes not:GET /api/reports/premium?plan=pro as free-tier userPOST /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.
8.3 The mobile-API BAC freebie
Section titled “8.3 The mobile-API BAC freebie”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: 42request 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.
8.5 The forgotten alternate auth paths
Section titled “8.5 The forgotten alternate auth paths”/api/mobile/login, /api/sso/login, /api/legacy/login, /api/service/loginMultiple 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.
Open local graph around this page
Broken Access ControlFor authorized security research only: bug bounty programs, your own systems, or scoped engagements with written permission.