User role can be modified in user profile
Introduction
This lab has an admin panel at /admin. It’s only accessible to logged-in users with a roleid of 2.
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
Once after login with the credentials wiener:peter
they provided in the lab objective and post login, we have the functionality to update the email ID
Simply we can update the email like just say admin@test.com
and Now the Intercept in burp, we can observe that post body goes in a JSON format and In the response, we got the exact attribute to change the role ID which is roleid
in the reponse which sets to 1
Now from our own request in the POST body, pass the attribute called roleid
which sets the value to 2
, send the request and as you can observe the response, the roleid
is changed from 1
to 2
Now we are able to access the admin panel with the following path /admin
which was previously blocked and delete the user called carlos
to solve the lab