Free tool / Firebase
Firebase security rules checker
Paste your Cloud Firestore, Cloud Storage or Realtime Database rules to find the mistakes that leave user data open: if true, test-mode dates, rules that only check someone is signed in, files not tied to their owner and more. Free, and it runs entirely in your browser.
Check your rules
How to get your rules
The checker reads which product you pasted automatically: Firestore and Storage rules use the same rules language, and Realtime Database rules are JSON.
- In the Firebase console, open Firestore Database, Storage or Realtime Database and click the Rules tab.
- Select everything in the editor and copy it. Copying doesn’t change or publish anything.
- Paste it into the checker. Check each product you use: Firestore and Storage rules can go in together; Realtime Database rules go on their own.
If your project has firestore.rules, storage.rules or database.rules.json files, those are what firebase deploy publishes. Paste those, and make sure they match what the console shows.
What it checks
- Rules open to everyone:
allow read, write: if true;, anallowwith no condition, and".read": truein Realtime Database. - Test-mode rules such as
request.time < timestamp.date(…)ornow < …, which leave data open until a date passes. - Rules that only check someone is signed in (
request.auth != null), which give every user everyone’s data. - Catch-all
{document=**}rules, which override stricter rules elsewhere because Firestore combines rules with OR. - Storage rules that don’t tie files to a user, and uploads with no size limit.
- Ownership mistakes: updates that let an owner reassign a document, and
writerules that checkresource.dataso new documents are rejected. - Users who can edit their own role on profile documents with no limit on which fields change.
- Email checks without
email_verified, so anyone can claim an address they don’t own. - Realtime Database cascading: access granted high in the tree that stricter rules below can’t take away, writes that never check
auth, and missing.validaterules. - Your own functions: calls like
isSignedIn()are filled in before checking, so a helper can’t hide an open rule.
What it can’t tell you
The checker reads your rules for common mistakes. It doesn’t connect to your project, see your data, or know what your app is supposed to allow, so a clean result is a good start, not a security sign-off.
Checker vs. the Rules Playground
Firebase’s Rules Playground, in the console’s Rules tab, simulates one request at a time against your rules and tells you whether it would be allowed. It’s the right way to confirm a fix, but it only answers the questions you think to ask. This checker looks at all your rules at once for the patterns that usually leave data open, so you know which requests to try in the Playground.
After fixing anything here, simulate reading another user’s document as a logged-out visitor and as a second signed-in user: both should be denied. The Firebase rules guide walks through those tests and how to add emulator unit tests.
Want a second pair of eyes?
Get your app checked by hand.
A checker catches patterns. A Full App Review tests your live app by hand with real accounts: whether one user can reach another’s data, every role, your AI features and the APIs behind them, with plain-English findings, fixes you can paste into your AI coding tool, and a recheck. $1,200 fixed price; founding rate $800.