Password reset link not validated.
The password reset link was not invalidated when a new one was generated, so an older link remained usable. An attacker who obtained a previously issued reset link could still use it to change the victim's password.
- Disclosed after 31 days
Hi, team . I found that password reset link sent by twitter is not validated.
Description: When a user ask for password reset link at two different times, say at 12.00 PM and at 12.03 PM. Then he is able to change his password using either of the link. Here the previous token is not expiring as soon as a new one is generated. Which means a link generated at 12.00 PM can also be use to change the password. For better securtiy previous token should get expired or should be invalidated as soon as new link is generated for that user.
POC:
- Ask for reset link 2 times
- Change the password using first link.
- There you go , it's possible and previous link is valid to change the password.
Fix: invalidate the previous token or link as soon as a new token or link is generated.
If any further information required please let me know.
Thanks and regards. Mohd Haji
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker who obtained an older reset link could still use it to change the victim's password, potentially leading to account takeover.
What the attacker needed
Attacker has an older reset link; victim requested multiple reset links
The fix
The previous token or link should be invalidated as soon as a new token or link is generated.
How it was found
- Request a password reset link twice.
- Use the first link to change the password.
- Observe that the first link is still valid and the password change succeeds.
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 report 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. Normally, asking for a second link should make the first one stop working. Here, the first link kept working, so anyone who got hold of it could still use it to take over the account.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.