Skip to content
Account takeover Disclosed report Beginner

2FA user enumeration via login

During login, the application asked for a second factor whenever the account had 2FA enabled, even if the password was wrong. An attacker could use this to learn which users had enabled 2FA.

goodhackonly Follow

Originally disclosed on HackerOne

  • Fixed in 2 days
  • Disclosed after 25 days

Summary by the program

While going live with additional 2FA options, a security researcher discovered that during login, users that had enabled 2FA were prompted for a second factor, even with an incorrect password (i.e. LR correctly rejected the login attempt without a second factor, but rejected all attempts for that user regardless of what password was used). This could have allowed enumeration of users that had enabled 2FA. To some degree, 2FA enumeration was mitigated by existing rate-limiting. This was resolved by the fix for #249431, which had the same root cause.

The original report as published on HackerOne, by goodhackonly. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 flow checked whether the account had 2FA enabled and prompted for the second factor before validating the supplied password.

Impact

This could have allowed enumeration of users that had enabled 2FA, although existing rate-limiting mitigated it to some degree.

What the attacker needed

Login page reachable; target accounts exist

The fix

It was resolved by the fix for a related issue that had the same root cause.

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) means logging in needs a password plus a second proof, such as a code. Here the login page revealed that an account used 2FA before the password was checked, so someone could test accounts and see which ones had 2FA turned on.

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.

More by goodhackonly

View all

6 more disclosed reports, best first.

More from Legal Robot

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.