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
- Add a policy on storage.buckets that denies select to anon.
- 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 appReferences
Related checks (M9)
- Android file or preferences created world-readable or world-writable
- Public Supabase bucket can be listed by anyone
- Public Supabase storage bucket (heuristic)
- Sensitive data written to external storage
- Sensitive data written to the log
- Secret written to device storage
- Tokens or passwords stored in plain app preferences
- Keychain item accessible while locked