Lab: Password reset broken logic
In this lab, we’ll bypass the “Forgot password” feature to get access on Carlos’s account.
On the home page, click “My account
Next page, click “Forgot password”
To get Wiener’s email address, click “Email client”
In the new open tab, copy Wiener’s email address
Go back to the previous tab, paste the email address and click “Submit”
Go to the email client and refresh the page, a new email appears. Click the link
In the new open page, type and confirm a password and click “Submit”
On Burp, in Proxy > HTTP History, find the POST reset that contains twice the “temp-forgot-password-token” (at the top and after “connection close”) and send it to Repeater
Delete the 2 tokens and replace “wiener” with “carlos”
When it’s done, send the reset, you get a 302 response
Go back to the lab and click “My account”
Enter Carlos’s credentials (still “peter” in this example, adapt if you have chosen something else) and click “Submit”
Carlos’s username and email address appear, the lab is solved