Authentication - Password reset broken logic
Objective: This lab’s password reset functionality is vulnerable. To solve the lab, reset Carlos’s password then log in and access his “My account” page.
- Your credentials:
wiener:peter
.- Victim’s username:
carlos
.
The site has a Forgot password? functionality, so let’s use that for the account
wiener
to see how it works:When we reset
wiener
’s password, it prompts up to check our email. So let’s login and do that:If we examine the request when we submit a new password, we will see that it includes a
username
parameter which we might be able to manipulate:We will do the process all over again, intercept the request when submitting our new password, and change the
username
parameter value tocarlos
:Then we will login with
carlos
account and his new password:
This post is licensed under CC BY 4.0 by the author.