Easiest Bug: Improper Token invalidation.
Password reset tokens were not invalidated after a password reset, so previously issued reset links remained usable. An attacker who briefly obtained a victim's email could save a reset token and later reuse it to regain access even after the victim changed their password.
infosecwriteups.com
Published on infosecwriteups.com
I wasn’t hunting for anything fancy that day. Just poking around, checking how the password reset flow works on the target web app.
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 server did not invalidate outstanding password reset tokens when a new password was set.
Impact
An attacker with brief access to the victim's email could reuse a saved reset token to regain access to the account after the victim changed their password, enabling post-exploitation account takeover or a backdoor.
What the attacker needed
Brief access to victim's email; attacker saves a reset token; victim later changes password
How it was found
- Visit the login page of the target application
- Request a password reset multiple times
- Reset the password using the latest reset token
- Try the previous reset tokens to see if any still work
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 a password, a website emails you a special link containing a secret code (a token) that lets you set a new password. Normally that code should stop working once it has been used or once the password is changed. Here, old codes kept working, so anyone who had saved one could still use it later to get back into 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.