Validation of Password reset tokens
Multiple password reset tokens generated for the same account all remain valid at once, instead of only the most recent one. An attacker holding any earlier token could still use it to reset the password until one token is used.
Originally disclosed on HackerOne
- Disclosed after 7 hours
Dear sir, At first, i am very happy to report an issue. Before three months, i reported to wakatime and again i am reporting another issue now.
Note:-This report is similar to #244614 which was previously reported at the start of this bug bounty program.
Vulnerability:- ->If two password reset tokens are generated at a time, then the first reset token doesn't expire after the generation of second reset token. ->Similarly, if 100 password reset tokens are generated then only the last generated reset token should be valid, but here all 100 tokens are being valid until any one in it is used to change password. ->As per industrial standards, and also as a best security issue, only one token should be valid at a time but not all the tokens.
I hope that you will resolve this issue as i am reporting a valid issue. Any issues, please let me know
Thank you
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
Root cause
Likely the application stores reset tokens without invalidating previously issued ones, so all outstanding tokens stay valid until one is used.
Impact
An attacker who obtains an older reset token could still use it to change the victim's password, though the report does not demonstrate this end to end.
What the attacker needed
Ability to request password reset emails; access to an older reset token
The fix
The application should invalidate all previously issued reset tokens whenever a new one is generated, so only the latest token is valid.
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.
Normally, asking for a new link should make old links stop working. Here, all the links sent stay valid until one of them is used, so an old leaked link could still be used.
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.