7.3 Lab: User role controlled by request parameter | 2023
This Lab has an admin panel at /admin, which is using a forgeable cookie. Solve the lab by accessing the admin panel and using it to delete the user carlos | Karthikeyan Nagaraj
2 min readSep 18
--
Description
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
Solution 1
- Log In with the credentials
wiener:peter
- Change the Value of Admin Cookie to True and Refresh the page
- Now you can access admin panel and you can delete the user Carlos to solve the lab
Solution 2
- Log In with the credentials
wiener:peter
- Now, Enable the proxy
- In the Request Right Click > Do Intercept > Response to this request
- Now on the response you can able to see the admin cookie’s value set to false
- Change it to true then send the request
- Switch of the proxy if needed
- Now you can access the admin panel and you can delete the user Carlos to solve the lab
If you would like to support me so that I could create more free content — https://www.buymeacoffee.com/cyberw1ng
Thank you for Reading!
Happy Hacking ~
Author: Karthikeyan Nagaraj ~ Cyberw1ng
Telegram Channel for Ethical Hacking Dumps — https://t.me/ethicalhackingessentials