Security - AuthorizationBeginner-Intermediate6 possible tests
Broken Access Control
Switch between users and test which endpoints enforce role and ownership checks - and which ones don't.
Simulated Session - Acting As
Acting as aliceuser
What is Broken Access Control?
Access control enforces that users can only perform actions they are permitted to. Broken access control means a regular user can access admin functions, other users' data, or perform actions restricted to specific roles.
What is hidden here
True Positive
Admin panel correctly returns 403 to regular users
True Negative
Admin user can access the admin panel
Bug Found
Delete endpoint has no ownership check - any user can delete any card
True Positive
Delete endpoint with ownership check correctly blocks the operation
Bug Found
Admin data endpoint returns sensitive data to non-admin users
True Positive
Protected endpoint correctly returns 403 for non-admin
TEST 1
Access Admin Panel
The admin panel should only be accessible to users with the admin role. Switch users to see how the response changes.
This endpoint verifies that the acting user owns the card before processing the delete. Try the same action as Test 2 - the result should be different.