So… I Could Reset Someone Else’s Password by Accident?
The password reset form accepted an email address supplied in the request rather than binding it to the address the user entered, so an attacker could make the reset email go to a different person. That recipient could then reset their own password without having asked for it.
Published on medium.com
I opened the website password reset page: https://website.com/users/password/new
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted the email address supplied in the reset request instead of binding it to the address the user originally entered.
Impact
An attacker could cause a password reset email to be sent to an arbitrary address, which could confuse the intended recipient and potentially let that recipient reset a password they did not request; the text does not claim account takeover.
What the attacker needed
Ability to intercept HTTP requests; a target email address
The fix
The password reset request should be bound to the original user input so the server only sends the email to the address the user entered, regardless of what is swapped in the request.
How it was found
- Visit the forgot password form
- Enter your own email address
- Intercept the request
- Replace your email with someone else's
- Forward the request
- The other person receives the reset link, not you
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 write-up has not been written yet. The Original tab links to the source.
When you ask a website to reset your password, it should send the email only to the address you typed. Here the server trusted whatever address was in the request, so someone could swap in another person's email and the reset link went to them instead. This is a logic flaw: the server did not check that the address matched the one the user actually entered.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.