Skip to content
Account takeover Write-up Intermediate

mfa bypass in private program, the abdulsec way

The application used a response header to decide whether to show the MFA challenge or setup page. By modifying this header, an attacker could redirect a victim to the MFA setup page, complete setup, and gain access without a valid MFA code.

abdulsec Follow

Published on abdulsec.medium.com

Bounty$600 View original

Hi , i hope you are doing well , it’s been a while since my last write up , today i wanna share with you a technique that i used to bypass a multi factor authentication in a private program

abdulsec, on abdulsec.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 the server relied on a client-side response header to determine the MFA flow, allowing an attacker to manipulate it and bypass the challenge.

Impact

An attacker could bypass MFA and gain access to a victim's account without a valid code.

What the attacker needed

Victim has MFA enabled; attacker can intercept and modify responses; attacker knows victim credentials

How it was found

  1. In Burp Suite, go to Proxy > Options > Match and Replace.
  2. Add a response header rule matching mfaChallengePage and replacing with mfaSetupPage.
  3. Log in to the victim account that has two-factor authentication enabled.
  4. You will be redirected to set up a new 2FA.
  5. Complete the MFA setup and you will be redirected to the victim account without a valid MFA code.
  6. You have successfully bypassed the two-factor authentication.

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) adds a second step to login, like a code from an app. The website used a header (a small piece of data in the server's response) to tell the browser which page to show next. The attacker changed that header so the browser showed the MFA setup page instead of the code entry page, letting them set up their own MFA and skip the 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.

More by abdulsec

View all

1 more disclosed report, 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.