Password Reset Token Invalidation Failure — A Subtle Bug wi
Password reset tokens were not invalidated when a new token was issued, so an old reset link remained usable. An attacker with access to an old reset email could reset the victim's password at any later time, leading to account takeover.
Published on medium.com
In the ever-evolving cybersecurity landscape, the weakest link often isn’t the feature you’re looking at — it’s the one you assume is already secure.
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 token issuance layer did not invalidate previously issued reset tokens when generating a new one, and did not enforce single-use semantics.
Impact
An attacker with access to an old reset email could reset the victim's password at any point, potentially leading to full account takeover.
What the attacker needed
Access to an old password reset email; victim has requested at least one reset
The fix
The backend should invalidate all previously issued tokens for that user when a new token is generated, enforce single-use semantics, and apply strict time-to-live policies.
How it was found
- Request a password reset link (Token #1).
- Request another password reset link (Token #2).
- Return to Token #1 and successfully reset the password.
- Use Token #2 again to change the password a second time.
- Verify access with the new credentials.
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 new link is requested. Here, old links kept working, so anyone who still had an old email could change the password later.
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.