Session Hijacking Vulnerability in Password Reset Flow Leading to
The password reset flow did not bind the session and OTP to the initiating account, so an attacker could swap the email mid-reset and use the OTP sent to one account to reset another account's password. Both accounts ended up with the same new password.
Imagine trying to reset your password on one account, only to realize you’ve inadvertently gained control over another. That’s exactly what happened here.
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 reset session and OTP were not strictly bound to the initiating account, allowing the account reference to be changed mid-process.
Impact
An attacker could gain unauthorised access to another account by resetting its password, and both accounts ended up with the same new password.
What the attacker needed
Access to the password reset flow; ability to swap the email mid-reset; OTP sent to the original account
The fix
The reset session should be strictly bound to the initiating account, OTPs should validate against the original account and expire if context changes, and any mid-process change should invalidate the session.
How it was found
- Initiate a password reset for Account A.
- Receive the OTP sent to Account A.
- Swap the email associated with the reset from Account A to Account B during the session.
- Use the OTP sent to Account A to reset the password for Account B.
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 reset a password, the system sends a one-time code (OTP) to prove it's you. Here, the system didn't check that the code was for the same account you started the reset for, so a code meant for one account could be used to change another account's 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.