How I Bypassed 2FA Reconfiguration Using Response Manipulation �
The 2FA reconfiguration flow checked the account password only on the client side, so the server returned a success status without verifying it. An attacker with an authenticated session could intercept the password-check response, change it to a success status, and then reconfigure the victim's second factor without knowing the password.
Published on medium.com
“ A missing of server-side password validation , that leads to 2FA reconfiguration bypass through BurpSuite. “
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 validate the account password before allowing 2FA reconfiguration, relying instead on a client-side response status.
Impact
An attacker with an authenticated session could reconfigure 2FA without the account password, which could lock the real user out of their account.
What the attacker needed
An authenticated session; a proxy tool to edit responses
The fix
The server should verify the account password (or a fresh re-authentication token) on the server side before allowing any 2FA change.
How it was found
- Open the user profile settings and start the 2FA setup flow.
- Enter a wrong account password and intercept the response in a proxy.
- Change the response status to 204 No Content and forward it.
- Choose Google Authenticator and complete the setup with the app.
- Observe that 2FA is set without the correct account 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 write-up has not been written yet. The Original tab links to the source.
Two-factor authentication (2FA) is a second check, like a code from a phone app, on top of your password. Here the app asked for the password before letting someone change the 2FA settings, but the server never actually checked it; it only trusted a status code sent back to the browser. By editing that status code in a proxy tool, the attacker could skip the password check and set up their own 2FA method.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.