Skip to content

Field manual · BAC · Chapter 4

Function-Level BAC

The action list

2 min readBroken Access Control

Chapter 4: function-level BAC: the action list

Section titled “Chapter 4: function-level BAC: the action list”

Why care: a vertical-escalation check on a route is useless if the action behind it never checks who is calling. All routes in Chapter 2 were about reaching admin. Now think like an insurance surveyor: it’s an inventory of ACTIONS, and each action needs checking:

Every state-changing action is a `?` in your matrix:
delete, archive, restore, close, approve, reject, refund,
impersonate, unlock, reset-password, disable-2FA,
transfer, withdraw, apply-coupon, change-plan,
grant, revoke, invite, promote, export, audit

The crown jewels of this list:

  • Password reset / email change / 2FA disable by admin: endpoints like POST /admin/users/1042/reset-password keep spinning up new tokens for victim → takeover, or directly receiving their new token via a notification-ID leak
  • Impersonation: POST /support/impersonate {"userId":1042}, support staff do it all day. Does it still work with a standard-user token?
  • Refund/approve: money-related vertical writes are instant-severity candidates
  • Audit log access / export: sometimes PII everything

For each, the test never gets more complicated than:

Terminal window
curl -X POST https://target.com/api/admin/users/1042/reset-password \
-H "Cookie: $STANDARD_USER_SESSION"
## Then check your Burp history — anything interesting in that response?

Auto-provisioning and SCIM: the user factory

Section titled “Auto-provisioning and SCIM: the user factory”

Enterprise apps let an identity provider create and update users automatically, usually over SCIM (System for Cross-domain Identity Management) or a private provisioning API. That API is a user factory: it mints accounts, sets roles, and flips group membership. It is high-privilege by definition, and it is often guarded by one shared secret and almost no per-request authorization.

Where it breaks:

  • The SCIM endpoint trusts a bearer token but never checks which tenant the token belongs to, so one customer provisions users into another.
  • The provisioning call sets a role or groups field directly. If a lower-privileged flow reaches the same handler, that is a role-flip by mass assignment.
  • Deprovisioning is incomplete. The IdP marks a user inactive, but the app leaves the session, the API key, or the group membership alive.

Treat the provisioning API as its own attack surface, separate from the login UI. Enumerate its routes, send a create-or-update call as the lowest role you hold, and watch whether it honors a tenant or a role it should refuse. Prove it with accounts and a tenant you control.

Next step: Chapter 5 covers the routing and parsing tricks that get the same request past the same middleware in a different shape.

Connections2 backlinks · 0 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

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.