Weak Password Reset functionality
The password reset mechanism does not invalidate older reset links after a newer one is issued or used. An attacker who obtains an old reset link could still use it to change the victim's password and take over the account.
medium.com
Published on medium.com
THIS TYPE OF VULNERABLITY OCCURS IN A WEB APPLICATION IN WHICH THERE IS A WEAK VALIDIATION OF PASSWORD RESET . AND INCREASES A ATTACK SURFACE FOR AN ATTACKER TO COMPROMISE USER ACCOUNTS .
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application does not invalidate previously issued password reset tokens when a new token is generated or when one is used.
Impact
An attacker who intercepts or finds an old reset link could use it to change the victim's password and take over the account, though this requires obtaining such a link.
What the attacker needed
A free account; ability to request multiple reset links; attacker obtains an old reset link
The fix
The application should invalidate all previous password reset tokens when a new one is issued or when any token is used.
How it was found
- Create an account on the target website.
- Log in and, from another browser, request a password reset link.
- Request a second password reset link and save both links separately.
- Use the second link to change the password and log in with the new password.
- Try using the first link to change the password again; if it still works, the application is vulnerable.
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 write-up has not been written yet. The Original tab links to the source.
When you forget your password, a website emails you a special link to set a new one. Normally, once you use that link or request a new one, the old link should stop working. Here, old links keep working, so anyone who finds an old link (for example in an email archive) could still reset the password.
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.