Skip to content

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

  1. Rotate or revoke the credential at https://console.firebase.google.com/.
  2. Check the provider's audit logs for use you don't recognise.
  3. 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]