Menu

Firebase rules left in test mode: how AI-built apps leak their whole database (proofforge.live)
📰

Firebase rules left in test mode: how AI-built apps leak their whole database (proofforge.live)

DEV Community: firebase·ProofForge | AI app security·2 days ago
#HuamBYiV
#devtofirebase#devto#dev#rules#true
Long article (323 words) — no AI summary yet.
Reading 0:00
15s threshold

Firebase databases are reachable from the browser by design. Your security rules are the only gate. Test-mode rules, which many tutorials and AI generators paste in to get started, look like this:

allow read, write: if true;

Enter fullscreen mode

Exit fullscreen mode

or in older Realtime Database projects, ".read": true, ".write": true . With those rules, anyone who finds your project ID can read and overwrite your data.

How to check your own project

Open the Firebase console, then Firestore Database (or Realtime Database), then Rules.

Search for if true , ".read": true and ".write": true . Also look for rules with an expiry date that has already passed or is close.

Test from outside. For Realtime Database, open https://YOUR_PROJECT-default-rtdb.firebaseio.com/.json in a browser. If JSON comes back while you are logged out, the database is open.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.