Broken Authentication Session Token Bug
A password reset code remained valid after the user changed their password, so an attacker who obtained the code could reset the password again. The report claims this could let someone with access to the victim's email reset the account password.
Originally disclosed on HackerOne
- Triaged in 9 hours
- Fixed in 14 days
- Disclosed after 19 months
Hi Team Hope your are good I have found a broken authentication issue in https://www.trycourier.app
Steps to reproduce
- Create a courier account or use existing one.
- Confirm Your email address.
- Now log out from your account and request for password reset code for your account .
- Don't use the code that has been sent to your email address.
- In new tab or new browser log in back to your account.
- Go to account setting and change your password .
- Now go to email and check the password reset code that we requested in step 3.
- Change Your password using that reset password code .
- You can see that your password has been changed.
The reset code is not expired after changing the password
Impact
If the site has a token issue, The result is the reset password token in the Step 3 is still usable and did not expire yet. If the victims opens his mail in cybercafe or in attackers device and forgot to log out then attacker can access that system and can reset the password of his account.
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
Impact
An attacker who has access to the victim's email or device could use the still-valid reset code to change the password, but this requires the victim to have left the code unused and the attacker to have access to that email or device.
What the attacker needed
A free account; access to the victim's email or device; victim leaves reset code unused
How it was found
- Create or use an existing account and confirm the email address.
- Log out and request a password reset code, but do not use it.
- Log back in from a new tab or browser and change the password in account settings.
- Check the email for the earlier reset code and use it to change the password again.
- Observe that the password is changed successfully, showing the code did not expire.
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 code to prove you own the account. This report says that code still worked even after the person had already changed their password, which means it should have been cancelled. If someone else saw that old code, they could use it to 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.