How I Found a Flaw That Permanently Locked Users Out of Their Accounts
A logic flaw in the email-change and two-factor authentication flow let an attacker attach their own 2FA to a victim's unverified email address, so the attacker could log in with the victim's email and their own password. The victim was then left with only the choice of verifying the account or losing it, effectively a permanent lockout.
Published on medium.com
This writeup is about a logic flaw in the system which makes a user account permanently locked instead of making it secure
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 application allowed an email change to an unverified address while carrying over the attacker's 2FA enrolment, and did not tie account ownership to the verified email before login.
Impact
The victim could be permanently locked out of the account, with only the options of verifying it or losing it.
What the attacker needed
Attacker can register an account; attacker can enable 2FA; victim's email is unverified
How it was found
- Register an account and try changing the email, using the previous verification link.
- Verify the account, enable 2FA, then change the email so a verification link goes to the new address.
- Consider the victim's position: they either click the verification link or reset their password.
- Attempt a password reset, which asks for 2FA that the victim does not have.
- Log out, then log in with the victim's unverified email and the attacker's own password, entering the attacker's 2FA code.
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.
When you sign up, the site usually asks you to confirm your email address before the account is fully active. This report shows that the site let someone else's two-factor code (the extra login code from an app) become tied to an email address that was never confirmed. Because of that, the real owner of the address could be shut out of their own account.
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.