medium · M3 · MASVS-AUTH-1 · PTKD-LIVE-FIREBASE-EMAIL-ENUMERATION
Firebase Auth tells anyone which emails have an account
Email enumeration protection is off: the Identity Toolkit API answers whether an address is registered. Attackers use this to build target lists for credential stuffing and phishing.
How it is exploited
With the web API key from the app, a script posts a list of leaked emails to accounts:createAuthUri and learns which ones are customers.
Why it matters
A list of your real users for credential stuffing and targeted phishing.
How to fix it
- Turn on Email enumeration protection.
- Check that the app's sign-in flow still works (fetchSignInMethodsForEmail returns empty afterwards).
Does your app have this?
PTKD checks your build or your source project for PTKD-LIVE-FIREBASE-EMAIL-ENUMERATION and every other check in this knowledge base.
Scan your appReferences
Related checks (M3)
- Permissive CORS with credentials
- State-changing request succeeded without authentication
- Weak JWT observed on the wire
- Biometric authentication not bound to a cryptographic key
- Premium access is stored on the phone and trusted (heuristic)
- Firebase rules trust an email address nobody verified
- Firebase security rules open to everyone
- Users can make themselves admin or premium in Firestore