high · M9 · MASVS-STORAGE-1 · PTKD-LIVE-FIREBASE-STORAGE-LISTABLE

    Firebase Storage listable without signing in

    The Storage bucket in the app lists its files to an unauthenticated request.

    How it is exploited

    Listing returns every object name; files are then downloaded one by one.

    Why it matters

    Exposure of every uploaded file.

    How to fix it

    1. Rewrite storage.rules to require request.auth.uid == uid for user paths.
    2. Deploy with firebase deploy --only storage.

    Does your app have this?

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

    Scan your app

    References

    Related checks (M9)