Password Reset Token Not Expired
Password reset tokens were not invalidated after a new token was issued or after a password change. An attacker with access to an old unused reset link could still use it to reset the victim's password.
- Fixed in 3 days
- Disclosed after 3 days
Hello Team,
Here in this scenario, I've found that the there's a kind of server side invalidation of Password Reset tokens. Like if I've requested for password reset token (token1) and I don't use it, after I will make another request for password reset token (token2). This time I'll use the token2 means the link that I requested for the second time, so the first token (token1) should explicitly expire by the server. But here I can use the token1 also after password change by token2, this is unusual behavior of web application.
Exploit Scenario: If victim's email account is still logged into his/her Office Computers or any public Internet Cafe. Then any external attacker can use the unused token to reset victims token.
Proof of Concept:
1)Go to https://infogram.com/forgot and ask for password reset link. 2)Don't use the link keep it in Email inbox. 3)After some time repeat the step 1. 4)This time use the password reset link which was asked in step 3. means the 2nd link. 5)After changing the password, use the password reset link that was captured in step 1. 6)You'll see the password reset link is not expired even after password change. 7)I've also explained you the Exploit Scenario, now its all upto you.
Regards, Ali Razzaq
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 server did not invalidate previously issued password reset tokens when a new token was generated or when the password was changed.
Impact
An attacker who can access an old unused reset link (for example, from a shared or compromised email account) could reset the victim's password even after the victim has changed it.
What the attacker needed
Victim's email account accessible to attacker; old reset link still present in inbox
How it was found
- Request a password reset link and leave it unused in the email inbox.
- After some time, request a second password reset link.
- Use the second link to change the password.
- After the password change, use the first (old) reset link.
- Observe that the old link still works and is not expired.
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, that link should stop working once you use it or request a new one. Here, old links kept working, so anyone who could see an old email could still take over 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.