€XXX bounty for 2FA disabled without password and OTP by response manipulation
The 2FA disable flow relied on client-side checks, so an attacker could intercept and alter server responses to bypass both the password and OTP steps. This allowed disabling 2FA on any account and then enabling it with the attacker's phone number, effectively taking over the account.
osintteam.blog
Published on osintteam.blog
Read For Free Here:- https://nexguardians.com/2fa-disabled-without-password-and-otp/
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 did not verify the password and OTP before disabling 2FA, and the client-side code trusted the server's response to proceed.
Impact
An attacker could disable 2FA on any account and then enable it with their own phone number, leading to full account takeover.
What the attacker needed
Victim has 2FA enabled; attacker can intercept and modify responses; attacker knows victim's password
The fix
The server should verify the password and OTP before disabling 2FA, and not rely on client-side responses.
How it was found
- Log in and enable 2FA using a phone number or authenticator app.
- Click disable 2FA, enter a wrong password, and capture the request.
- Intercept the response, change it to 200 OK, and set the body to SUCCESS.
- Observe the password step is bypassed and an OTP prompt appears.
- Enter a wrong OTP, capture the request, and again change the response to 200 OK with SUCCESS.
- See that 2FA is disabled; then enable 2FA with a different phone number to take over the account.
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.
Two-factor authentication (2FA) is a second proof of identity, like a code sent to your phone. The website asked for your password and that code before turning off 2FA, but it trusted messages from the browser instead of checking on the server. An attacker could fake those messages to turn off 2FA without knowing the password or code.
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.