Password reset token not expiring
Password reset tokens issued by the service did not expire when a newer token was requested, so multiple tokens stayed valid at once. An attacker who had briefly accessed the victim's recovery email could keep an old token and still use it to reset the password after the victim had reset it again.
- Triaged in 5 days
- Fixed in 35 days
- Paid in 48 days
- Disclosed after 36 days
Old unused Password reset tokens are not expiring on mail.ru after the issuance of a new token. Explaination Suppose at 09:00 hrs I used password reset options of mavenlink and got a token on my email.Lets call it token01.But i didnot use it. And at 09:04 hrs I used again the password reset option and got a new token,which is token02. Now generally after the issuance of token02,the previous unused token should expire.But in case of mavenlink its not happening.Both the tokens are remaining usable at the same time.
Attack Scenario Suppose I am an attacker and I got access to the recovery email option of your mavenlink account.I logged in to ur recovery email (suppose that is [email protected]).Then I used the forget password option of your mavenlink email.I will get one password reset token. I noted the token and then deleted the email from [email protected]. In the meantime u understood that someone got access to ur account.They you reset the password of mavenlink by issuing new token and also u changed the password of ur [email protected] so that any one cant hack again ur mavenlink account. Now its time for my exploitation. I will use my token which is live even after your issuance of new token.and I will hack into ur mavenlink account.
Mitigation
- Use a certain living span for a token.Suppose,a token will remain valid upto 12 hours after being issued.
- All unused tokens should expire automatically after the issuance of a new token.
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 reset tokens were stored without invalidating earlier ones, so each new request added a valid token instead of replacing or expiring the previous ones.
Impact
An attacker with temporary access to the recovery mailbox could keep an old token and use it to take over the account even after the victim resets the password and secures the email.
What the attacker needed
Access to victim's recovery email; victim requests a reset first
The fix
Reset tokens should have a limited lifetime and all unused tokens should be invalidated automatically when a new one is issued.
How it was found
- Request a password reset and receive a token by email, but do not use it.
- Request a second password reset a few minutes later and receive a new token.
- Observe that both tokens remain usable at the same time.
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 a password, a site emails you a special link that lets you set a new one. Normally asking for a second link should cancel the first, but here both links kept working. That means someone who saw an old link could still use it later, even after you changed your password to lock them out.
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.