WakaTime · Report #244612
Password reset links should expire after being used, instead of at specific time
How it was found
Hi,
Hope you are good!
Steps to repro:
- Create an account having any email address like "[email protected]".
- Now Logout and ask for password reset link. Don't use the password reset link sent to your mail address.
- Login using the same password back and update your email address to "[email protected]" and verify the same. Remove "[email protected]".
- Now logout and use the password reset link which was mailed to "[email protected]" in step 2.
- Password will be changed.
Fix:
All previous password reset links should automatically expire once a user changes his email address.
So below is the attack scenario:
-
My email account is compromised. Attacker asks for password reset link for my account.
-
I got to know, I change my email address on my account. I now assume i am safe.
-
But the hacker can still use the old password reset links (which he had never used for single time) which were sent to my old email address.
-
My account is now compromised again.
Please let me know if you need any other information and thanks again for looking into this.
Please fix this.
Best Regards Piyush kumar