LS-GCP-005: Firebase Config¶
| Severity | MEDIUM |
| Blast radius | Push notification abuse |
| Rotate at | https://console.firebase.google.com/ |
If this leaks¶
The Firebase server key allows sending push notifications to all of the app's registered devices via FCM, which can be abused for spam or phishing.
What to do¶
- Rotate or revoke the credential at https://console.firebase.google.com/.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
AAAA[a-zA-Z0-9_-]{7}:[a-zA-Z0-9_-]{140}
Suppress¶
On one line: # leakscan:ignore LS-GCP-005. For the whole project:
disable_rules: [LS-GCP-005]