critical · M3 · MASVS-AUTH-2 · PTKD-LIVE-FIREBASE-RTDB-OPEN

    Firebase Realtime Database readable without signing in

    The Realtime Database URL in the app returned data to an unauthenticated request.

    How it is exploited

    `curl https://<project>-default-rtdb.firebaseio.com/.json` downloads the whole database in one request.

    Why it matters

    A live, confirmed leak of the entire database.

    How to fix it

    1. Deploy rules that deny by default: { "rules": { ".read": false, ".write": false } } and open per-path with auth.uid checks.
    2. Rotate anything sensitive that was stored there.

    Does your app have this?

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

    Scan your app

    References

    Related checks (M3)