Signup with any email and enable 2FA without verifying email
The signup flow allowed enabling two-factor authentication before the email address was verified. An attacker could register with a victim's email, enable 2FA, and thereby prevent the victim from registering or logging in even after a password reset.
Originally disclosed on HackerOne
- Fixed in 39 hours
- Disclosed after 7 months
##Description : When i signup, i can enable 2FA without verification my email.
##Attack Scenario :
- The Attacker signup with the victim email.
- Go to
Two factor autheticationand enable 2FA
Impact
when the victim want to register in this site, they can't, because they email claims by attacker. and if the victim reset the password to get back the email, he can, but he can't login because need 2FA code.
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 application allowed the 2FA setup action before the account's email address had been verified.
Impact
The victim cannot register with their own email, and even after a password reset they cannot log in because the attacker's 2FA code is required.
What the attacker needed
Attacker knows victim's email address; no email verification required before 2FA setup
How it was found
- Sign up using the victim's email address.
- Go to the two-factor authentication settings and enable 2FA.
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.
When you create an account, the site normally sends a link to your email to prove the address is yours. Here, the site let someone turn on two-factor authentication (a second login code, usually from a phone app) before that proof happened. So an attacker could claim someone else's email address and lock the real owner out.
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.