Activation tokens are not expiring
A password reset link automatically logs the visitor into the account that generated the link, before any new password is set. An attacker could send their own reset link to a victim, who then becomes logged in as the attacker, letting the attacker observe the victim's activity in that account.
- Triaged in 7 hours
- Fixed in 2 days
- Disclosed after 23 days
Hi Team,
Domain: demo.weblate.org
In this bug, maybe it is low risk but i have found a way to login any person to the attackers account, therefor when any user login to attackers account, the attacker can see the users activity on attackers account. The issue relies on the password reset.
Stes to reproduce:
- Create fake account and generate reset password link.
- Go to email, get the reset password link and send it to victim
- When victim click the link, victim automatically login to attackers account.
Please note that when the victim clicks the reset password link, victim will redirect to the page that ask to insert password, but even if the victim did not inout password, and click the profile name at the upper right of the reset password page. The victim will redirect to attackers profile account, meaning upon clicking the reset password link, victim already logged in to attackers account.
Mitigation:
Do not automatically login the user after clicking the reset password link.
Let me know if you need more information.
Regards Japz
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-password endpoint creates an authenticated session as soon as the token is visited, before the password is actually changed.
Impact
An attacker could lure a victim into their account via a reset link and then observe the victim's activity there; the report itself rates this as possibly low risk.
What the attacker needed
Attacker has an account; victim clicks the reset link
The fix
The reset link should not create a logged-in session; the user should only be signed in after successfully setting a new password.
How it was found
- Create a fake account and generate a password reset link for it.
- Retrieve the reset link from the email inbox.
- Send the reset link to the victim.
- The victim clicks the link and is automatically logged into the attacker's account.
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 meant to let you choose a new password, not to sign you in. Here, opening the link signed the visitor into the account that created the link, even without typing a password. So an attacker could trick someone into opening the attacker's own reset link and then watch what that person does inside the attacker's 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.