Problem
src/firebase.js contains the Firebase project config object hardcoded
directly in source code:
const firebaseConfig = {
apiKey: "AIzaSy...",
authDomain: "your-project.firebaseapp.com",
projectId: "your-project-id",
...
};
This file is committed to a public repository with 1k stars and 682 forks.
These credentials have been copied hundreds of times. Without proper Firestore
Security Rules, anyone with the apiKey can read/write the database.
Fix — Part 1: Move to environment variables