Can a stranger open the files people upload to your app?
Most apps keep the files people upload, like IDs, receipts and contracts, in a storage bucket with its own lock. When that lock is off, anyone with one link can get to the rest.
Only check apps you own or have permission to test.
- 110K+
- views on my bank statement reel
- 507
- people sent the free check from a reel comment
- 1,395
- people follow along on Instagram
Counted from Instagram and my DM log.
What goes wrong
In July 2025 the Tea dating app said about 13,000 selfies and photo IDs had been taken from its storage bucket. No password was broken. The files sat in Firebase Storage where anyone could read them.
I built a demo rental app that asks for a photo of your driver's licence. My own licence sat at a link ending in licenses/yusuf.jpg. With the file name cut off, the app's storage handed back the whole folder: every applicant, newest first. The data in the demo is made up. The setting that caused it is one switch.
Two different things can be open, and either one is a problem.
- Listing. A stranger asks for the folder and gets every file name back. This is the bad one, because they don't need to guess anything.
- Plain links. No list, but every file opens for anyone who has its link, forever. If names are easy to guess, like a user name or a number that counts up, that's nearly as bad.
Why AI-built apps end up like this
The upload works and the picture shows. Nothing looks broken. The shortest way to make a picture show is a public link, so that's what gets written.
On Supabase, buckets start private. getPublicUrl hands back a link either way, but the link only opens once the bucket is switched to Public. That one switch is how the photos start loading. On Firebase, "test mode" rules let anyone read and write until a date passes, and some people replace them with allow read: if true so it keeps working after.
Check yours in 5 minutes
Use your own test account and a file you uploaded yourself. You don't need to open anyone else's files to know the answer: a list of names is enough.
- Sign in with your test account and open a file it already uploaded. No file yet? Upload one on a test copy of your app, like a preview or staging deploy, not the live one. Open the file in its own tab and copy the link.
- Open a private window, where you're signed out, and paste the link. Does it open?
- Look at the end of the link. A signed link carries something that runs out, like
X-Amz-Signature,X-Goog-Signature,sig=, or/object/sign/on Supabase. A link with none of these that opens signed out is a public file. - Now ask for the list, still in the private window. Find your store below.
- Your link has s3.REGION.amazonaws.com
https://BUCKET.s3.REGION.amazonaws.com/?list-type=2&prefix=FOLDER/ - Your link has storage.googleapis.com
https://storage.googleapis.com/BUCKET?prefix=FOLDER/ - Your link has firebasestorage.googleapis.com
https://firebasestorage.googleapis.com/v0/b/BUCKET/o?prefix=FOLDER/ - Your link has blob.core.windows.net
https://ACCOUNT.blob.core.windows.net/CONTAINER?restype=container&comp=list - Your link has supabase.co/storageUse the command below
- Your link has r2.dev or your own domainNo list address. Skip to step 5
Copy BUCKET, FOLDER, ACCOUNT and CONTAINER from your own link. Firebase links write folders as %2F: licenses%2Fyusuf.jpg means folder licenses.
On Supabase, cutting the file name off a link never shows a list, even on a public bucket. The list has its own address, and whether it answers depends on your storage policies, not the Public switch. Ask it with your project's public key, the one already in your app's page code:
curl -s -X POST "https://PROJECT.supabase.co/storage/v1/object/list/BUCKET" \
-H "apikey: YOUR_PUBLIC_KEY" \
-H "Content-Type: application/json" \
-d '{"prefix":"FOLDER","limit":100}'
Run it once with the folder your own file sits in, from your link, and once with "" for the top of the bucket. An empty answer at the top doesn't clear the folders under it.
- Open the setting itself. It's the real answer, because a list can be hidden behind a name you didn't try.
- Supabase: Storage, then each bucket. A "Public" label, or a policy on
storage.objectsforanonorpublicwith no check on who is asking. - Firebase: Storage, Rules.
allow read: if true, or a rule that only checks the date. - Amazon S3: the bucket's Permissions tab. A bucket policy with
"Principal": "*"that allows reading or listing, or an ACL that grants Everyone. "Block all public access" being off doesn't open anything by itself, but it's what lets those through. - Google Cloud Storage: the bucket's Permissions.
allUsersorallAuthenticatedUserson the list. - Azure: the container's access level. "Blob" means plain links. "Container" means plain links and a list.
- Cloudflare R2: Settings, Public access. A live r2.dev address or a custom domain means plain links.
You have it if you got file names back, or if a file opened in the private window from a link with no signature in it and the files are private things like IDs or documents. Product photos and avatars are meant to be public. Licences are not.
Got a list back?
The fix is below. If real people's IDs or documents are in there, send it to me. I fix one finding from $150, and you get the price in writing before I start.
Get it fixedLet your AI run it, free
For Claude Code, Cursor, Lovable or Bolt
Paste it into the chat that has your app open. It runs the check itself and asks before it changes anything.
No coding tool? Open it in a chat that walks you through each step:
Back from your AI without a result link? Tap what it found:
Make it a free account. Run every free check from inside your AI with no copying, see what an add-on can touch before you install it, and keep your results in one place. Your email is already filled in.
Want to see exactly what your AI is told? Here's the page it reads. Not you?
Your AI runs it on your side. VXSec never sees your code or data, only which check ran, when, and how many holes it found. Use a test copy for checks that change data. Nothing gets fixed until you say yes.
How to fix it
Give each person a link that runs out, only for their own files, then make the bucket private. Change the code that shows files first. Close the bucket first and every picture in your app breaks until the code catches up.
Supabase. Do it in this order. Add a policy so each user can read their own folder, because making a signed link needs read access too. Then swap getPublicUrl for createSignedUrl. Then turn Public off on the bucket.
-- 1. in SQL: each user reads only their own folder
create policy "read own files" on storage.objects for select to authenticated
using (bucket_id = 'licenses' and (storage.foldername(name))[1] = (select auth.uid())::text);
// 2. upload to a folder named after the user
await supabase.storage.from('licenses').upload(`${user.id}/licence.jpg`, file);
// 3. show it with a link that runs out in 60 seconds
const { data } = await supabase.storage.from('licenses').createSignedUrl(`${user.id}/licence.jpg`, 60);
Files already saved outside a user-id folder won't match the policy, so move them first. Then delete any older policy on storage.objects that lets anon or public select from that bucket.
Firebase. Replace the open rule with one that checks who is asking:
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /licenses/{userId}/{file} {
allow read, write: if request.auth != null && request.auth.uid == userId;
}
}
}
Anything not matched by a rule is closed. Firebase download links carry a token= that opens the file for anyone holding the link, whatever the rules say, so links already sent out keep working. Revoke the token on each file in the console if those links got out.
Amazon S3, Google Cloud Storage, Azure, R2. First serve files through your server with a short signed link: a presigned URL on S3 and R2, a signed URL on Google Cloud, a SAS on Azure. Five to fifteen minutes is plenty. Then remove any policy that names everyone ("Principal": "*", allUsers) and turn on the store's own block: Block Public Access on S3, public access prevention on Google Cloud, "Allow Blob anonymous access" off on the Azure storage account, public access off on R2.
Use random file names too, like a UUID, not the person's name. It isn't the fix on its own, but it means a link that leaks reveals one file, not the pattern for all of them.
Then run the check again from the private window. The list should come back empty or refused, and an old plain link should fail.
What still catches people
- Fixing the database and forgetting storage. Row level security on your tables does nothing for files in a bucket.
- Thinking "nobody knows the address." Your app shows every user the link to their own file, and the bucket name is in it.
- A signed link that lasts a year. That's a plain link with extra steps.
- Checking only the bucket you know about. Old test buckets and backup buckets are often the open ones.
Questions
The list came back empty. Am I safe?
Only if it was empty for the folder your own file is in too, not just the top. Then check the setting and whether a file opens from a plain link, because guessable names do the same damage slower.
My bucket only has avatars and product photos. Does this matter?
Those are meant to be public. Keep them in their own bucket so a private file can never land next to them.
I found real people's files. Do I have to tell them?
Depending on where you and they are, possibly. Close it first, check your storage logs for who downloaded what, then get advice on whether you must notify.
Can I test someone else's app?
Only with their written permission.
Before you launch
This is one hole. Launch Gate runs six other checks in one go on a test copy of your app, like who can see whose data, and gives you one page of results with proof. Members get it inside their own AI.
VXSec Membership
$19a month, or $190 a year
- Workspace Setup
- AI Reach Map
- Agent Brakes
- Launch Gate
- Leaver Check
- Every new helper, the day it's out
New members first month $7, then $19 a month. Cancel anytime.
Rather have it done for you? I fix it $150 and up, 20% off for members · Launch Review $297 once, I check and fix the top 3 · Built for you $1,500 a month and up
Want to practise on an app built to be broken first? Open the practice lab.