**Password Reset Link Not Expiring After Email Change: A Critical Vulnerability**
A password reset link remained valid after the user changed their email address, so an attacker holding an old reset link could still reset the password. This could lead to account takeover.
Published on medium.com
Hey I am Muralidharan,I am back with a new bug bounty write-up. This will be a very small write-up but an interesting one.
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 revoke or expire existing password reset tokens when the account email address is changed.
Impact
An attacker with an old reset link could reset the password and take over the account even after the email was changed, potentially locking the user out.
What the attacker needed
Attacker holds an old reset link; victim changes email address
The fix
The application should invalidate all unused password reset tokens when the email address is changed, and reset links should expire quickly and be tied to the current email.
How it was found
- Request a password reset link to the current email and copy it without clicking.
- Change the account email address and verify the new one.
- Open the old reset link in the browser and use it to reset the password.
- Log in with the new password to confirm the reset worked.
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. That link should stop working after it is used or after a short time. Here, the link kept working even after the account's email address was changed, so anyone who still had the old link could take over the account.
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.