The mistake
A Realtime Database rule such as ".read": true or ".write": true, the test-mode rule "now < <timestamp>", or a rule that only checks auth != null.
Why it is dangerous
Realtime Database rules cascade: a true at a path grants access to that path and everything below it, and deeper rules cannot take it back. Anyone with your database URL (it is in your web app's config) can read or overwrite that whole subtree with a plain HTTP request. auth != null grants every signed-in user access to the whole subtree, including other users' data, and anyone can create an account with your public config.
How to fix it
Scope access to the signed-in owner:
{
"rules": {
"users": {
"$uid": {
".read": "auth != null && auth.uid === $uid",
".write": "auth != null && auth.uid === $uid"
}
}
}
}Keep ".read": true only on paths that hold genuinely public data, and never ".write": true.
What this checker looks for
This page runs firebase-launch-check, which reads
firestore.rules, storage.rules, database.rules.json, firebase.json and app code. The rules most relevant to this page:
| Rule | What it finds |
|---|---|
FLC201 | Realtime Database open to everyone (".read"/".write": true) |
FLC202 | Realtime Database test-mode rule (open until a date) |
FLC203 | Realtime Database only checks "signed in" (auth != null) |
FLC301 | Service account private key in the project |
FLC302 | Admin SDK (firebase-admin) in client code |
Every finding has a rule id, a severity, file:line, the offending line (secrets masked),
why it matters and how to fix it. Run firebase-launch-check rules for the full list.