The “Immortal” Password Reset Link: A Bug Hunter’s Delight
The article describes multiple password reset vulnerabilities where reset links remain valid after use, after requesting a new link, after a manual password change, or after an email change. An attacker who obtains such a link could reset the victim's password and take over the account.
medium.com
Published on medium.com
Ah, the humble password reset link. Designed to be a one-time savior for the forgetful user.
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 reset tokens after they are used, after a new token is issued, or after the password or email is changed.
What the attacker needed
Attacker obtains the reset link; victim has an account
The fix
Reset links should be one-time-use, expire quickly, and be invalidated when a new link is requested or when the password or email is changed.
How it was found
- Request a password reset link.
- Check your email for the reset link.
- Reset your password once, twice, thrice — hell, as many times as you want!
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.
A password reset link is a special URL sent to your email that lets you set a new password. Normally it should work only once and expire quickly. Here, the links kept working even after being used or after the password was changed, so anyone who got hold of an old link could still 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.