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.
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
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
- In Burp Suite, go to Proxy > Options > Match and Replace.
- Add a response header rule matching mfaChallengePage and replacing with mfaSetupPage.
- Log in to the victim account that has two-factor authentication enabled.
- You will be redirected to set up a new 2FA.
- Complete the MFA setup and you will be redirected to the victim account without a valid MFA code.
- 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.