Learn how to find one of the easy p4 bug
A password reset link remained valid after being used to change the password, so the same link could be reused to set a new password again. An attacker who obtained the link (for example via the victim's email) could reuse it to take over the account.
cybersecuritywriteups.com
Published on cybersecuritywriteups.com
The failure to invalidate password reset tokens after use can lead to account takeovers and reputational damage for businesses.f an attacker gains access to a user’s email or the system storing reset tokens, they could use the still-valid token to reset the password and take over the account.
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 mark the reset token as used or delete it after a successful password change, so the same token stayed valid.
What the attacker needed
A free account; access to the reset email; the reset link is reused before expiry
The fix
The reset token should be single-use and invalidated on the server immediately after a successful password change.
How it was found
- Create an account on the target website and log out.
- Go to the login page, click forget password, enter the email and request a reset.
- Open the reset link from the email and copy the change-password link address.
- Paste the link in a new tab, set a new password and submit.
- Copy the same reset link again and open it in an incognito tab.
- Enter another new password and submit; the password changes again with the same link.
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 that lets you set a new one. That link should stop working once you have used it. Here it kept working, so anyone who still had the link could change the password again.
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.