Email Verification Link can be Used as Password Reset Link!
The email verification link could be modified by removing a parameter to turn it into a password reset link. An attacker could use this to reset a user's password if they obtained the verification link.
Originally disclosed on HackerOne
- Triaged in 20 hours
- Fixed in 13 days
- Paid in 13 days
- Disclosed after 26 days
Summary by the researcher
I was able to turn an email verification link into a password reset link.
Proof Of Concept: https://www.binary.com/user/validate_link?step=account&verify_token=q4b4QVyLZD9daVpAdiXAIiAExC8DaGmqFPk8wNt9nTqAm7Pa&l=EN Remove "step=account" from the URL, then enter your email. After entering your email, you will be able to reset your password.
The report
Hello again!
basically,I have found a new issue which allows attacker to use a Email Verification Link and make it into a password reset link!
Proof Of Concept: When you Send a Email Verification Link It looks like this "https://www.binary.com/user/validate_link?step=account&verify_token=q4b4QVyLZD9daVpAdiXAIiAExC8DaGmqFPk8wNt9nTqAm7Pa&l=EN"
Remove "step=account" from the URL, and tadaa! you will see once u enter the email you can change password!
Thank you, -Karim
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 verification endpoint did not properly distinguish between email verification and password reset actions, allowing the same token to be used for both.
Impact
A verification link can be turned into a password reset link, allowing the password to be reset.
What the attacker needed
Attacker obtains a verification link
How it was found
- Send an email verification link.
- Remove the step=account parameter from the URL.
- Enter the email address 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 sign up, a website sends you a link to confirm your email. This report shows that by changing that link slightly, it could be used to reset your password instead. That means if someone got hold of your verification link, they might be able to change your password.
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.