Firebase Hosting & Firestore Rules Audit (2026) · Read-Only 6-Phase Scanner

Free Firebase & Firestore Security Rules Audit & Pre-Launch Scanner

Firebase makes authentication and Realtime Database/Firestore setup effortless — until prototype test-mode rules (allow read, write: if true;) survive into production or service account JSON files leak into public bundles. Run a passive read-only VibeShield v7.0 check before launch.

1-click live demo:

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.

Launch Special: Unlock Exact Locations & 5-Platform Fixes for $2 (was $9) One-time perpetual browser unlock (78% off during Launch Special, zero monthly subscription, 14-day refund guarantee) — or grab the OmniForge Complete Suite (VibeShield + InboxShield + CiteReady) for $5 once (was $29).
Run Free 6-Phase Scan → Unlock VibeShield — $2 (was $9) Complete 3-App Suite — $5 (was $29)

More Stack Hardening Guides & Empirical Research

55 Live Apps Audited

State of Vibe-Coded Web App Security (2026)

Full 6,120+ check empirical benchmark study across Vercel, Custom Domains & GitHub Pages.

Read full study →
Stack Guide

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...

Open Lovable guide →
Stack Guide

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...

Open Cursor & Next.js guide →
Stack Guide

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...

Open Bolt.new & Netlify guide →
Stack Guide

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...

Open Supabase RLS guide →
Stack Guide

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...

Open v0.dev & Vercel guide →
Stack Guide

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...

Open Replit Agent guide →
Stack Guide

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, ...

Open Cloudflare Pages & Workers guide →