high · M1 · MASVS-STORAGE-1 · PTKD-LIVE-FIREBASE-REMOTE-CONFIG-SECRET

    Secrets published in Firebase Remote Config

    Remote Config values are delivered to every app install and can be fetched with the web API key alone. Parameters that hold API keys, tokens or passwords are public.

    How it is exploited

    The attacker posts appId + any appInstanceId to namespaces/firebase:fetch with the app's API key and reads an `openai_api_key` parameter.

    Why it matters

    Every listed secret is in the hands of anyone who installs (or just unpacks) the app.

    How to fix it

    1. Remove the listed parameters and publish.
    2. Rotate every credential that was in them.
    3. Call the third-party service from a backend that holds the key.

    Does your app have this?

    PTKD checks your build or your source project for PTKD-LIVE-FIREBASE-REMOTE-CONFIG-SECRET and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M1)