Skip to content

wagnerbocchi/broken-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

broken-authentication

BrokenAuthentication

Password reset broken logic

1 -With Burp running, click the Forgot your password? link and enter your own username.
2 -Click the Email client button to view the password reset email that was sent. Click the link in the email and reset your password to whatever you want.
3 -In Burp, go to Proxy > HTTP history and study the requests and responses for the password reset functionality. Observe that the reset token is provided as a URL query parameter in the reset email. Notice that when you submit your new password, the POST /forgot-password?temp-forgot-password-token request contains the username as hidden input. Send this request to Burp Repeater.
In Burp Repeater, observe that the password reset functionality still works even if you delete the value of the temp-forgot-password-token parameter in both the URL and request body. This confirms that the token is not being checked when you submit the new password.
In the browser, request a new password reset and change your password again. Send the POST /forgot-password?temp-forgot-password-token request to Burp Repeater again.
In Burp Repeater, delete the value of the temp-forgot-password-token parameter in both the URL and request body. Change the username parameter to carlos. Set the new password to whatever you want and send the request.
In the browser, log in to Carlos's account using the new password you just set. Click My account to solve the lab.

About

BrokenAuthentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages