Skip to content
Account takeover Write-up Beginner

How I Bypassed 2FA on a Fintech Platform

The server did not validate the presence of an OTP on password change and account deletion endpoints, only checking it on the frontend. An attacker with stolen credentials could change the password or delete the account without the second factor.

medium.com

Published on medium.com

During a recent authorized penetration test on a fintech web application, I discovered a critical vulnerability that allowed me to completely bypass Two-Factor Authentication (2FA) on sensitive account operations — specifically password change and account deletion. What made this finding particularly severe was its…

Yamini Yadav_369, on medium.com

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

The backend only validated the OTP if it was present in the request, treating it as optional rather than mandatory.

Impact

An attacker with stolen credentials could change the victim's password or delete the account without the second factor, leading to account takeover and potential financial loss.

What the attacker needed

Valid user credentials; ability to intercept and modify requests

The fix

The backend should enforce OTP as a mandatory field and validate it before performing any sensitive operation.

How it was found

  1. Capture the password change request in Burp Suite Repeater.
  2. Remove the otp_code field from the JSON body.
  3. Forward the request and observe a success response.
  4. Repeat the same technique on the account deletion endpoint by removing the otp_code field.

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) adds a second step, like a code sent to your phone, to protect your account. Here, the website's frontend asked for the code, but the backend server never checked if it was actually provided. So someone who already had your password could skip the code and still change your password or delete your account.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.