critical · M3 · MASVS-AUTH-2 · PTKD-LIVE-FIREBASE-FIRESTORE-READABLE
Firestore collection readable without signing in
A collection the app's code uses returned a document to an unauthenticated request.
How it is exploited
Firestore's REST API with the web API key from the app returns documents from the open collection, page after page.
Why it matters
A live, confirmed leak of that collection.
How to fix it
- Replace open rules with owner checks.
- Test in the Rules Playground, then deploy.
- Rescan with live checks on.
Does your app have this?
PTKD checks your build or your source project for PTKD-LIVE-FIREBASE-FIRESTORE-READABLE 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