Rate limits too low for email 2FA
The email-based two-factor authentication code could be brute-forced because the login endpoint did not enforce a rate limit. An attacker who already knew a victim's email and password could try many codes and, if successful, take over the account.
Originally disclosed on HackerOne
- Disclosed after 33 days
NO RATE LIMIT ON 2FA CAN LEAD TO ACCOUNT COMPROMISE!
- Create account on vault.bitwarden.com if you don't have.
2.Setup 2FA via email 3.Logout and log in again. This time along with password you have to fill the 2fa code which is sent to the email. 4.Type Any Random number, intercept request with burp then send to intruder, mark the code position and start bruteforcing
Results:
Invalid Code Response = 400 Valid Code Response = 200
Impact
2FA acts as extra security. Even if the attacker has user credentials 2FA always protects them from accessing the user data and compromise their whole account. If the 2FA can be bruteforced it can lead to account compromise assuming that attacker already knows email and password!
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the login endpoint accepted unlimited 2FA code attempts without rate limiting or lockout.
What the attacker needed
Attacker knows victim's email and password; victim has email-based 2FA enabled; attacker can send many login requests
How it was found
- Create an account on the target site.
- Enable email-based two-factor authentication.
- Log out and log in again, entering the password and then a random 2FA code.
- Intercept the login request with a proxy tool and send it to an intruder tool.
- Mark the 2FA code position and start brute-forcing.
- Observe that invalid codes return a 400 response and a valid code returns a 200 response.
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 report has not been written yet. The Original tab links to the source.
Two-factor authentication (2FA) is a second check after your password, often a short code sent to your email. If a website lets someone guess that code over and over without slowing them down, the second check becomes much weaker. Here, the reporter says the site did not limit how many guesses could be made.
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.