Skip to content

[Security] Firebase config credentials hardcoded in firebase.js — exposed in public repo with 682 forks #70

@saismrutiranjan18

Description

@saismrutiranjan18

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions