Checks
- Rules open to anyone
- Test mode rules with an end date
- Rules that only check someone is signed in
- Rules that trust an unverified email address
- Open rules higher up that cancel stricter ones
- Open reading of collections with personal-looking names
- Firestore updates that check only the new owner
Test mode left on
A made-up Firestore file still holds a trial rule: anyone may read and write every record until a date far in the future. The result reports it, because a date that has not arrived protects nothing today. In the corrected file a signed-in person can add and read only their own orders.
- Anyone can read and change every document in Cloud Firestore until 2099-01-01Line 5: match /{document=**}: allow read, write: if request.time < timestamp.date(2099, 1, 1)
Require sign-in and check who owns the data.
Checked again after the fix: none of these results come back.
What does test mode allow?
Test mode grants access to all users. Google’s guide to insecure rules warns that with open access, anyone who guesses your project ID can steal, change or delete the data. A trial rule is for building alone. Replace it before real people use your app.
Is “signed in” enough?
A rule that only asks whether someone is signed in lets every account through. If strangers can create accounts, that includes them. Google asks you to confirm that you want any signed-in person to have that access. This made-up file lets any account read and change orders. The corrected one compares the owner saved on the record with the person asking.
- Any signed-in user can read and change documents at “/orders/{orderId}” in Cloud FirestoreLine 5: match /orders/{orderId}: allow read, write: if request.auth != null
Check that the signed-in person owns the data, or has the right role.
Checked again after the fix: none of these results come back.
Can someone take over a record?
Look at both the record already saved and the one being sent. Google’s example allows an update only when the signed-in person matches the owner in each, which stops a change of ownership. A Firestore update rule that compares your user ID with the new data alone is flagged. Storage and Realtime Database rules are not read for this, and a rule that hands the comparison to a helper with inputs is not judged, so read those yourself.
Is public reading a problem?
It depends on what is there. A menu or a blog can be public. A list of people, orders or messages should not be. Open reading of a collection is raised when its name suggests details about people, such as users or orders. That rests on a short list of names, so read every open-read line in your result and decide which kind it is.
Did Google AI Studio write your rules?
Google says the AI Studio agent does not know about edits you make in the Firebase console, and later changes to your app overwrite them. Ask the agent to make the change, then copy the published rules from the console and check them here.
What can pasted rules not show?
Only that text is read. Nothing connects to your project, so there is no telling whether these are the live rules. Where a condition cannot be judged, the result says so. App Check, spending limits and server code are outside it.
Publish, then check again
Edit the rules, try them in the console’s Rules Playground, then publish. If you also deploy with the Firebase command line tool, change the file in your project too, or the next deploy replaces your console edit. Paste the published rules here again.
Sources, read 30 November 2026
- Firebase: fix insecure rulesno date shown
- Firebase: Google AI Studio integrationno date shown
- Firebase: manage and publish rulesno date shown
V.I.B.E is made by TNAADO. It is not part of, or endorsed by, Google or Firebase.
Advanced app builds
TNAADO builds multiplatform products that take payments and protect sensitive data.
Start a project