Top 4 Pre-Launch Risks in Firebase & Firestore Production Apps
1. Prototype Test-Mode Firestore Rules Left Public
Leaving allow read, write: if true; or expired timestamp rules lets any unauthenticated caller read or overwrite entire Firestore collections using the public firebaseConfig projectId.
2. Missing Field-Level Validation on User Writes
Checking request.auth.uid == userId without restricting affectedKeys() allows signed-in users to mutate their own plan, role, or credits fields directly from the browser console.
3. Public Firebase Storage Buckets & Service Account Leaks
Never commit firebase-adminsdk-*.json private keys into frontend directories; VibeShield flags leaked PEM private keys and Google service account secrets across 24 JS chunks.
4. Missing firebase.json Security Headers
Firebase Hosting serves static sites without CSP, HSTS preload, X-Frame-Options, or Permissions-Policy unless configured under hosting.headers in firebase.json.
Copy-Paste Deny-by-Default Firestore Security Rules (MIT)
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /users/{userId} {
allow read: if request.auth != null && request.auth.uid == userId;
allow update: if request.auth != null
&& request.auth.uid == userId
&& !request.resource.data.diff(resource.data).affectedKeys()
.hasAny(['role', 'plan', 'isAdmin', 'credits']);
allow create, delete: if false;
}
match /{document=**} {
allow read, write: if false;
}
}
}
Frequently Asked Questions
Is my Firebase web apiKey in client JS a security leak?
The standard public Firebase Web API key (AIza...) identifies your project and is expected in browser code, provided your Firestore/Storage Security Rules and API key HTTP referrer restrictions are properly locked. VibeShield distinguishes public client config from exposed private keys and misconfigured backend rules.
What does VibeShield Web Pro ($2 Launch Special, was $9) unlock?
It reveals exact bundle paths, line evidence, copy-paste firebase.json headers, Firestore rule patches, and 5-platform remediation scripts with a 14-day refund guarantee.
More Stack Hardening Guides & Empirical Research
State of Vibe-Coded Web App Security (2026)
Full 6,120+ check empirical benchmark study across Vercel, Custom Domains & GitHub Pages.
Lovable Pre-Launch Security
Audit your .lovable.app or custom domain in 2 seconds before launch: check Supabase Row Level Security (RLS), leaked client A...
Cursor & Next.js Pre-Launch Security
Stop shipping NEXT_PUBLIC_ secret leaks, public .js.map source maps, and missing CSP/HSTS headers in Cursor + Next.js + Verce...
Bolt.new & Netlify Pre-Launch Security
Audit your Bolt.new / .netlify.app / Vite production site free in 2 seconds: detect VITE_ API key leaks, public .js.map sourc...
Supabase RLS Pre-Launch Security
20% of newly launched AI web apps ship live Supabase backends. Run a read-only passive RLS & service_role key leak audit in 2...
v0.dev & Vercel Pre-Launch Security
Audit your v0.dev / Vercel Next.js deployment in 2 seconds before sharing: detect missing CSP/HSTS headers, leaked NEXT_PUBLI...
Replit Agent Pre-Launch Security
Audit your .replit.app or custom Replit deployment passively in 2 seconds: catch exposed client API keys, missing Express/Fla...
Cloudflare Pages & Workers Pre-Launch Security
Audit your Cloudflare Pages (.pages.dev) or Workers production site in 2 seconds: verify all 10 Mozilla Observatory headers, ...