critical · M3 · MASVS-AUTH-2 · PTKD-LIVE-FIREBASE-FIRESTORE-READABLE

    Firestore collection readable without signing in

    A collection the app's code uses returned a document to an unauthenticated request.

    How it is exploited

    Firestore's REST API with the web API key from the app returns documents from the open collection, page after page.

    Why it matters

    A live, confirmed leak of that collection.

    How to fix it

    1. Replace open rules with owner checks.
    2. Test in the Rules Playground, then deploy.
    3. Rescan with live checks on.

    Does your app have this?

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

    Scan your app

    References

    Related checks (M3)