Broken Authentication – Session Token bug
A password reset link issued before a user changes their password inside their account remains valid afterwards. An attacker holding such a link could still use it to set a new password even after the victim has changed theirs.
Originally disclosed on HackerOne
- Fixed in 2 hours
- Disclosed after 30 days
I found a broken authentitication vuln
POC:
1- Create a https://demo.weblate.org/accounts/profile/ account 2- Confirm your email 3- Now request a password reset for your account. 4- Don’t use the password reset link that was sent to your email. 5- Login to your account, remember don’t use first the reset password link you requested in 3 step 6- Change your password in the Account Settings( url: https://demo.weblate.org/accounts/profile/ Step 5. After you changed your password inside your account, Check now the reset password link you requested in Step 3 in your email. Step 6. Change your password using the reset password link you requested.
See this link: https://www.owasp.org/index.php/Broken_Authentication_and_Session_Management
Impact
tokken should expire
If the site has a token issue, The result is the reset password token in the Step 3 is still usable and did not expire yet. Not invalidating the session token for the reset password is not a good practice for a company.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application does not invalidate outstanding password reset tokens when the account password is changed through the profile settings.
Impact
A previously issued reset link could still be used to set a new password after the user changed theirs.
What the attacker needed
A free account; access to the reset email link
The fix
The reset token should expire or be invalidated when the password is changed.
How it was found
- Create an account on the demo site and confirm the email address.
- Request a password reset for the account but do not open the emailed link.
- Log in and change the password from the account settings.
- Open the earlier reset link from the email and use it to change the password again.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
The report says the emailed reset link still works after you change your password from inside your account. That is described as poor practice.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.