critical · M3 · MASVS-AUTH-2 · PTKD-LIVE-FIREBASE-RTDB-OPEN
Firebase Realtime Database readable without signing in
The Realtime Database URL in the app returned data to an unauthenticated request.
How it is exploited
`curl https://<project>-default-rtdb.firebaseio.com/.json` downloads the whole database in one request.
Why it matters
A live, confirmed leak of the entire database.
How to fix it
- Deploy rules that deny by default: { "rules": { ".read": false, ".write": false } } and open per-path with auth.uid checks.
- Rotate anything sensitive that was stored there.
Does your app have this?
PTKD checks your build or your source project for PTKD-LIVE-FIREBASE-RTDB-OPEN 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