Firebase databases anyone can read
A Firebase database is readable by anyone when its security rules allow reads without a login, like allow read: if true in Firestore or ".read": true in the Realtime Database. The config in your site's code is public by design, so the rules are your only protection. The fix: require a signed-in user and match each record to its owner.
Where it shows up: Firebase Realtime Database and Firestore
Are you affected? The 60-second check
In the Firebase Console, open Firestore Database → Rules and Realtime Database → Rules. Any rule that allows reads with if true, with no condition, or with only a date check (the default test-mode rule) is open.
For the Realtime Database, ask it for its top-level keys as a stranger would, using the databaseURL from your own config:
Permission denied means it's closed. A list of keys means anyone can read it. For Firestore, the Rules Playground in the console lets you test a read as an unauthenticated user.
What it is
Like Supabase, Firebase apps read data straight from the browser with a public config. Security rules are what keep the data private.
Test mode rules, or rules written to get past a permission error, often allow reads for everyone. Those rules then ship to production unchanged.

What an attacker sees
With the public config in your site's code, anyone can read an open Realtime Database or Firestore collection directly, with no account and without using your app.
How to fix it
Paste this into your AI tool:
Security fix: my Firebase data is readable by anyone with no login. Update the Realtime Database and Firestore security rules so reads and writes require authentication, and scope each record to its owner (match request.auth.uid to the record's owner field) instead of letting any signed-in user read everything.
Or by hand:
- In the Firebase Console, open Firestore Database → Rules (and Realtime Database → Rules if you use it).
- Replace any rule that allows reads with `true` or with no condition.
- Publish the rules, then re-scan.
Mistakes that look fixed but aren't
- Test-mode rules that only check a date (request.time < timestamp.date(...)). They allow everything until the date passes, and then teams often replace them with if true.
- request.auth != null on its own. It lets any signed-up user read every other user's data, and sign-up is usually open.
- A match /{document=**} rule that allows reads, which opens every collection at once.
- In the Realtime Database, a .read granted on a parent path can't be taken back by a stricter rule on a child path.
Check your app
Shippable reads your Firebase config from your site's code and asks as an anonymous visitor. For the Realtime Database it lists only the top-level key names. For Firestore it reads a single document and reports only its field names.
Scan your dev server before you push. No account needed:
Or scan your live app in the browser:
FAQ
Is the Firebase apiKey in my code a secret?
No. The Firebase web config, apiKey included, identifies your project and is meant to be public. Security rules decide what that config can access.
What happens when Firestore test mode expires?
Test-mode rules allow all reads and writes until a date about 30 days after you create the database, then deny everything. Replace them with real rules before launch rather than extending the date or switching to if true.
Does App Check protect my database?
It helps by making it harder for scripts outside your app to use your project, but it doesn't replace security rules. Rules still decide what each user may read.