medium · M9 · MASVS-STORAGE-1 · PTKD-LIVE-SUPABASE-BUCKETS-LISTED

    Supabase storage buckets listable with the app's public key

    The anon key can list the project's storage buckets, which tells an attacker where files live and which buckets are public.

    How it is exploited

    Listing buckets reveals names like 'kyc-documents' (public). The attacker then fetches files from the public bucket URL.

    Why it matters

    Reconnaissance that leads straight to exposed files.

    How to fix it

    1. Add a policy on storage.buckets that denies select to anon.
    2. Make user-content buckets private and use signed URLs.

    Does your app have this?

    PTKD checks your build or your source project for PTKD-LIVE-SUPABASE-BUCKETS-LISTED and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M9)