pentesting, updated
Testing for bypassing authorization schema
Look for ways to reach a restricted function by changing the request rather than the credentials.
Goal
Confirm authorization is enforced on every request path to a resource, not just the one the UI exposes.
How to test
Try reaching the same restricted action through a different route:
curl -s https://example.com/admin/delete-user/5 # blocked?
curl -s https://example.com/Admin/delete-user/5 # case variation
curl -s https://example.com/admin/delete-user/5/ # trailing slash
curl -s https://example.com/api/v1/admin/delete-user/5 # a different API version
curl -s https://example.com/admin/delete-user/5 -X POST # a different method
What to look for
A restricted action succeeding via a path variant, case change, alternate method, or an older/undocumented API version.
References
- OWASP WSTG-ATHZ-02 — Testing for Bypassing Authorization Schema.