Skip to content
Info disclosure Write-up Beginner

️ How I Found 300+ Web3 Users’ 2FA Secrets Using Just One Recon Command

The platform generated 2FA enrolment QR codes through a third-party service, encoding the user's name, email and TOTP secret in a Base64 string that was publicly indexed. An attacker could decode these strings to obtain live TOTP secrets and bypass two-factor authentication for hundreds of users.

zack0x01_ Follow

Published on medium.com

I’m a bug bounty hunter focused on Web3 apps, and this write-up is for the real ones in the game — the researchers.

zack0x01, on medium.com

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

What the attacker needed

Access to the third-party QR service; knowledge of the URL pattern

The fix

The exposed links were shut down and mass 2FA rotation was performed, but the underlying issue should be fixed by generating QR codes server-side without exposing secrets to third parties.

How it was found

  1. Notice that the 2FA enrolment QR code is loaded from an external domain with a Base64 string in the URL.
  2. Use a recon tool to enumerate URLs on that external domain.
  3. Decode the Base64 strings from the URLs to reveal names, emails and TOTP secrets.

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 set up two-factor authentication (2FA), the app shows a QR code that your authenticator app scans to generate login codes. Here, that QR code was made by an outside website, and the data inside it (including the secret used to generate your login codes) was not protected. Anyone who found the web address could read the secret and generate valid login codes, effectively bypassing 2FA.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by zack0x01_

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.