Skip to content
Access control Disclosed report Beginner

Missing link to 2FA recovery code

Users who enabled only TOTP-based two-factor authentication were not shown a link to the recovery code feature, even though the program intended all 2FA users to have access to it. This could leave such users unable to recover their accounts if they lost their authenticator device.

goodhackonly Follow

Originally disclosed on HackerOne

  • Triaged in 7 hours
  • Fixed in 32 hours
  • Paid in 32 hours
  • Disclosed after 35 hours

Summary by the program

While going live with additional 2FA options, a security researcher discovered that while we provide a TOTP fallback and Recovery code fallback for users that have enabled U2F, we neglected to do this for TOTP-only users. All users that have enabled TOTP or U2F 2FA should have been able to access the recovery code feature.

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 recovery code link was only rendered for U2F users, and the condition was not extended to TOTP-only users.

Impact

TOTP-only users could be locked out of their accounts if they lost access to their authenticator, because they had no visible way to obtain recovery codes.

What the attacker needed

TOTP-only 2FA enabled

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) adds a second proof of identity beyond a password, often a code from a phone app. A recovery code is a backup string you can use if you lose that phone. Here, people using only the app-based method were not offered the recovery code option, so losing the phone could lock them out.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.