Skip to content

Security Issue: Firebase API Key Hardcoded in Source Code #6

@shaanlabs

Description

@shaanlabs

The Firebase API key is currently hardcoded directly into the source code and has been committed to the repository, making it publicly visible. This exposes the key to anyone who accesses the repository and can potentially lead to unauthorized access to your Firebase project. While Firebase API keys are not full access secrets, they can still be exploited if your Firebase rules (for database, storage, authentication, etc.) are not properly secured. To mitigate this risk, it is recommended to remove the key from the source code, move it to a secure environment variable (such as in a .env file), and ensure that the file is listed in .gitignore to prevent future leaks. Additionally, the exposed API key should be regenerated from the Firebase console, and all Firebase security rules should be reviewed for any vulnerabilities or misconfigurations.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions