Lab: Method-based access control can be circumvented
This lab implements access controls based partly on the HTTP method of requests. You can familiarize yourself with the admin panel by logging in using the credentials
To solve the lab, log in using the credentials
wiener:peter and exploit the flawed access controls to promote yourself to become an administrator.
- Log in using the admin credentials.
Browse to the admin panel, promote
carlos, and send the HTTP request to Burp Repeater.
- Open a private/incognito browser window, and log in with the non-admin credentials.
Attempt to re-promote
carloswith the non-admin user by copying that user's session cookie into the existing Burp Repeater request, and observe that the response says "Unauthorized".
Change the method from
POSTXand observe that the response changes to "missing parameter".
Convert the request to use the
GETmethod by right-clicking and selecting "Change request method".
- Change the username parameter to your username and resend the request.