🟢User role controlled by request parameter

This lab has an admin panel at /admin, which identifies administrators using a forgeable cookie.

Solve the lab by accessing the admin panel and using it to delete the user carlos.

You can log in to your own account using the following credentials: wiener:peter

accessing admin as a normal user

When I access /admin, an error message pops up and says that the interface is only available to administrators.

burpsuite intercept

When I intercept the HTTP request using burp suite, i can see a Admin=false under in the cookie.

changed Admin to true
able to access admin panel

Changing the Admin field to true leads me to the admin panel.

change Admin to true when deleting the user carlos

When I want to delete the user carlos, I need to modify the Admin field before I can successfully complete the action.

success

Last updated