Account Takeover via Response Manipulation
The application's two-factor authentication and password reset flows relied on a client-side response field to decide success, so an attacker could flip that field in the server response to bypass the OTP check. This allowed logging in without a valid code and resetting any user's password without interaction.
Published on medium.com
The original lives on medium.com
We do not hold its text, 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 application made authorisation decisions based on a client-side response field rather than validating the OTP on the server.
Impact
An attacker could bypass two-factor authentication and reset the password of any user without any interaction, leading to full account takeover.
What the attacker needed
A valid account on the target; ability to intercept and modify responses (e.g., Burp Suite); victim's email address for password reset
How it was found
- Go to the login page and enter valid credentials to reach the 2FA page.
- Enter a random OTP and capture the request in Burp Suite.
- Send the request to the response and change the error field from false to true.
- Observe that the 2FA is bypassed.
- Log out, use the forget password feature, choose the 2FA code option, and enter a random OTP.
- Capture the request, change the error field in the response, and get redirected to the new password page.
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 log in, the server sends back a message saying whether your one-time code was correct. Here, the website trusted that message on the user's side, so a person could edit it to say the code was fine even when it was wrong. That let them get past the extra security step and even change someone else'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.