Skip to content
Account takeover Write-up Intermediate

How I Bypassed a Billion-Dollar Fintech’s MFA with a Single Con

The MFA verification endpoint could be bypassed by sending an empty request body with a misleading Content-Type header, causing the backend to compare null values and grant a valid session token. An attacker who already had a user's password could then bypass the second factor and change bank details to drain the account.

T4nv1 Follow

Published on medium.com

We’ve all seen the classic bug bounty write-ups. “How I found a $10,000 Remote Code Execution by staring at a base64 string for 72 hours.” They are brilliant, but they often make it seem like you need a Ph.D. in cryptography to find anything substantial these days.

T4nv1, 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

Likely a combination of inconsistent Content-Type handling between the API gateway and the internal MFA service, plus a loose comparison in the backend that treated null as equal to null.

Impact

An attacker who had compromised a user's password or stolen a session cookie could bypass MFA, change bank details, and drain the account.

What the attacker needed

Compromised user password or session cookie; access to the MFA verification endpoint

The fix

The vulnerability was fixed by adding strict type checking and enforcing explicit Content-Type validation at the gateway.

How it was found

  1. Intercept the MFA verification request in Burp Suite.
  2. Change the Content-Type header to application/x-www-form-urlencoded while keeping the JSON body.
  3. Observe a 500 error revealing a PHP backend.
  4. Remove the body entirely and send the request with Content-Length: 0.
  5. Receive a 200 OK response containing an mfa_bypass_token.

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.

Multi-factor authentication (MFA) is a second check, like a code sent to your phone, that you must pass after entering your password. The bug meant that if an attacker already knew the password, they could skip the code check entirely by sending a specially crafted request that confused the server into thinking the correct code was provided. This let them take over the 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.

More by T4nv1

View all

113 more disclosed reports, best first.

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.