2FA Bypass via Basic Authentication on private bug bounty program
Appending an extension such as .aspx to an existing page URL triggered a hidden Basic Authentication prompt. Entering valid credentials there logged the user in without the second factor, bypassing 2FA.
Sharat Kaikolamthuruthil Follow
Published on medium.com
This is yet another 2FA bypass that I discovered in a private bug bounty program. So I had found a couple of bugs including a 2FA bypass in this application & was hunting for mores bugs.
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 separate authentication path (the Basic Authentication handler) that did not enforce the second factor that the normal login flow required.
What the attacker needed
Valid account credentials; 2FA enabled on the account
How it was found
- Take an existing page URL such as example.com/edit.
- Append an extension such as .aspx to the path.
- Observe that a Basic Authentication prompt appears.
- Enter valid account credentials in the prompt.
- Observe that the account logs in without the 2FA step.
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 your phone, after your password. Here the site had another, hidden login box that only asked for the username and password. Logging in through that box skipped the second check entirely, so anyone with just the password could get in.
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.