Password Reset Link issue
A password reset link remained valid after the account owner logged in, so an attacker who had requested the link could still use it later to reset the password. The reporter argues this could lead to account compromise if the original email was compromised.
Originally disclosed on HackerOne
- Fixed in 3 days
- Disclosed after 33 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 password reset token is not invalidated when the user successfully logs in, so it stays valid until its normal expiry.
Impact
An attacker who obtained a reset link could still use it after the victim logged in, potentially compromising the account.
What the attacker needed
Attacker obtains the reset link; victim logs in before link is used
The fix
The reset link should not stay valid after the user logs in.
How it was found
- Request a password reset link for an account.
- Log in to that account.
- Log out.
- Use the previously received reset link to reset the password.
- Observe that the link still works and has 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 after a short time or once you have logged in. Here it kept working even after the real owner logged in, so anyone who had the link 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.