link reset problem
Password reset links remained valid after the account owner logged in, so a link requested by an attacker could still be used later to reset the password. The reporter argues this could let an attacker compromise the account if the original email was compromised.
Originally disclosed on HackerOne
- Disclosed after under an hour
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
Attachments
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 is only invalidated by time or use, not by a successful login or by issuing a newer token.
Impact
An attacker who obtained a reset link could still use it after the victim logged in, potentially taking over the account.
What the attacker needed
Attacker can request a reset link; victim logs in before link expires
The fix
Reset links should be invalidated when the user logs in or when a new reset link is requested.
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.
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 it has been used. Here the link kept working even after the real owner logged in, so anyone who had that link could still change the password later.
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.