Free tool · runs in your browser
Who can read your Firebase data?
Paste your Firestore, Storage or Realtime Database security rules. Your browser reads every allow line and flags the ones that let anyone in, the test-mode rule that is still switched on, and rules that let any signed-in stranger read everyone’s data. Each one comes with the line, the fix and a prompt for your AI builder. Nothing you paste leaves this page.
Why rules matter
Your Firebase config is public. Your rules are the only lock.
Every Firebase web app ships its project config, API key included, in the JavaScript every visitor downloads. That is by design: the key only identifies the project. What decides who can read and write is the security rules file, and anyone can call your database directly with the config, without ever opening your app.
So a rule that says if true, or that only checks request.auth != null, is an open door, whatever your app’s screens show.
| Rule | Who gets in |
|---|---|
allow read, write: if request.time < timestamp.date(…) | anyone Test mode. Open to the whole internet until the date, then everything breaks. |
allow read; or if true | anyone No condition at all. |
if request.auth != null | any account Checks that someone signed in, not who. Anyone can sign up. |
if request.auth.uid == userId | the owner What you want for personal data. |
What it looks for
The rule mistakes AI builders and quick-starts leave behind.
The check reads each allow statement with the path it sits under, follows your helper functions, and judges what the condition actually checks.
| Pattern | What it means | Severity |
|---|---|---|
| Test mode still on | The date rule Firebase writes when you choose test mode. Anyone can read and write everything until that date. | critical |
| Catch-all match | A rule on {document=**} or {allPaths=**} that allows access. Firebase combines rules with OR, so it overrides every stricter rule in the file. | critical or high |
| Open write | allow write with no condition, anywhere. Anyone can change or delete your data. | critical |
| Signed-in only | A condition that only checks request.auth != null, so every account can reach every user’s documents. | high |
| Open read | Public read on a collection. Fine for a product list; flagged critical when the name looks personal (users, orders, messages, uploads…). | medium or critical |
| Open create | allow create: if true. Nobody can read or change existing data through it, but anyone can script fake records with any field set, including the owner. FlutterFlow starts every new collection this way. Signed-in-only create is flagged low. | high or low |
| Expired test mode | The date has passed, so every request is denied and your app fails with permission-denied. | low |
Where do I find my rules?
In the Firebase console, open Firestore Database (or Storage, or Realtime Database) and choose the Rules tab. Copy everything in the editor. If your project uses the Firebase CLI, the same rules are in firestore.rules, storage.rules or database.rules.json in your repo. The console shows what is live, so check that one if they differ.
Is it safe to paste my rules here?
Rules aren’t secret, but you don’t have to trust us: the check is a script on this page that reads the text box and draws the result. It makes no network request and stores nothing. Open your browser’s developer tools, go to the Network tab, and run a check to see for yourself.
Isn’t my Firebase API key the real problem?
No. The Firebase web API key is meant to be in your app and only identifies the project. Your rules decide what that key can do. Keys for other services (AI providers, Stripe, a service account JSON) are a different story: paste those files into the free key check.
Nothing flagged. Am I safe?
None of the risky patterns appear in what you pasted, and every allow line checks who is asking. This is a reading of the rules text, not a test against your project, so a condition can still be wrong in a way only a test shows (an owner field the client can set, say). Firebase’s Rules Playground in the console lets you try a request as a signed-out user and as another user.
I built my app in FlutterFlow. Where are my rules?
FlutterFlow writes them for you from Settings › Firestore and deploys them when you press Deploy there; you can copy the live result from the Rules tab in the Firebase console. Every new collection starts with Create and Read set to Everyone, so a collection you never revisited is readable by anyone. The check spots FlutterFlow’s rule format and tells you which setting to change.
Do you check Firebase apps in the lab?
Not yet. The full PatchLabs check rebuilds Supabase databases from their migrations and tests them as three people. For Firebase, this rules check and the key check are what we offer today. Tell us if you’d use a full Firebase check.
Building on Supabase too?
Check your keys and your Supabase access rules, free.
The full check scans your code and full git history for keys, rebuilds your Supabase database in our lab, tests it as three identities, writes the fix and proves it works. First app free, fixes included.