Reset Link Issue
Password reset links remained valid after the account owner logged in, so a link requested by an attacker stayed usable. An attacker who had requested a reset link could later use it to reset the password and take over the account.
Originally disclosed on HackerOne
- Disclosed after 8 days
Hello, i found out about an issue in your password reset links and their expiration Steps to reproduce: Request a password reset link to an account Login to the account afterwards Logout and use the link to reset the password The link would not be expired
Now i know that the links need to expire after a certain time, but thinking logically there is no point of keeping the link alive once the user has logged in, It indicates the possibility that the user's original email has been compromised and the attacker has requested the link, This way the user's account can be compromised.
Attack Scenario: Attacker requests the password reset link, User logs in, Link does not expire even after that. The attacker can use the link easily. Infact requesting a link when the account is logged in from a location should be prohibited to prevent compromise
I think this should be fixed, Thanks
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 token was not invalidated when the account owner logged in, so it stayed valid until its normal expiry.
Impact
An attacker who requested a reset link could use it after the victim logged in to reset the password and compromise the account.
What the attacker needed
Attacker can request a reset link; victim logs in before link expires
The fix
Reset tokens should be invalidated when the account owner logs in, and reset requests made while the account is logged in should be blocked.
How it was found
- Request a password reset link for an account.
- Log in to that account.
- Log out and open the reset link.
- Observe that the 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.
A password reset link is a special web address sent by email that lets someone set a new password. Normally it should stop working after a short time or once it has been used. Here the link kept working even after the real owner logged in, so anyone who had obtained the link could still use it to change the password.
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.