Vertical Privilege Step Test
Walk every privilege boundary one step at a time, testing adjacent roles rather than leaping from anonymous straight to superuser
Use when: the API has at least three distinct privilege levels and you control an identity for each adjacent pair
Avoid when: only one privilege boundary exists, where a simpler admin-guard check is sufficient
Procedure
- Order the role levels from the claim catalog: anonymous, member, elevated, staff, tenant-admin, platform-admin.
- For each adjacent pair, list operations the higher role can reach that the lower role must not.
- Call those operations as the lower role using only credentials issued to roles you control.
- Check whether any operation assigns, grants or modifies roles, since those are the worst vertical gaps.
- Verify that elevated capabilities expire or require re-confirmation when the product promises one-time elevation.
- Record each boundary as a pass or fail row so the report can rank the most exposed boundary first.
Signals
- The boundary between two ordinary roles holds on GET but fails on a mutation, showing incomplete enforcement.
- An operation that changes roles accepts the request with mismatched or missing elevation claims.
- Elevation granted by one flow persists into sessions the grant never intended to cover.
- The lowest privileged role can invoke a bulk operation implicitly reserved for staff, despite separate UI routes.
Patterns
1. Boundary list
boundaries: anon->member, member->elevated, elevated->staff, staff->tenant-admin, tenant-admin->platform-admin
2. Adjacent test
member calling elevated op grant-role -> 200 -> vertical gap at member->elevated
3. Result row
boundary=member->elevated ops=5 failures=1 worst=POST /api/roles grant
Pitfalls
- Testing anonymous against everything while skipping intermediate boundaries, which is exactly where gaps hide.
- Using production-issued credentials outside your own accounts instead of the controlled role pairs you own.
- Assuming UI-visible privileges match server checks, when the server is the only authority that matters.
Done when
- Every adjacent privilege pair has a tested operation list with per-assignment pass or fail verdicts.
- Role-granting operations have dedicated evidence showing whether the elevation claim is validated server-side.