2FA manual entry uses wrong encoding
A change to the two-factor authentication flow caused manually entered TOTP secrets to be decoded with the wrong encoding. As a result, users could not manually register a new authenticator device for roughly twelve hours, though no sensitive data was exposed.
- Fixed in 10 days
- Paid in 10 days
- Disclosed after 40 days
Summary by the program
As in report #260491, a security researcher discovered that following another change (from report #259415), we used the wrong encoding for the manually entered secret. No sensitive data was exposed and there was no security risk, but users were unable to manually register a new TOTP device for about 12 hours.
@vishnuprasad reported this issue first, but due to a clerical error, report #260491 was processed first, awarded a bounty, and closed as Resolved. It is therefore only fair to award the same bounty to @vishnuprasad and close this report as Resolved. @vishnuprasad, we apologize for the error and have awarded a bonus for our mistake.
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 a recent change to the manual TOTP enrolment path decoded the user-supplied secret using the wrong encoding, so valid secrets were rejected.
Impact
Users were unable to manually register a new TOTP device for about 12 hours; the program states no sensitive data was exposed and there was no security risk.
What the attacker needed
Manual TOTP enrolment; a recent change to the enrolment 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 report has not been written yet. The Original tab links to the source.
Two-factor authentication adds a second step at login, often a six-digit code from an app. To set that up by hand, a user types a long secret key into the app, and the server must read that key the same way the app does. Here the server read it in the wrong format, so the setup failed for a while.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.