cd /news/ai-tools/can-one-user-see-another-user-s-data… · home › topics › ai-tools › article
[ARTICLE · art-177556] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Can one user see another user's data in your AI-built app? The two-account test for Supabase, Firebase and custom APIs

ProofForge released a free two-account test that checks whether one user can read another user's data in Supabase projects, targeting broken access control and IDOR bugs common in AI-built apps. The tool takes a project URL, private tables and the owner column, then generates a read-only script that runs locally with two throwaway accounts, returning zero rows as the pass condition. ProofForge notes the test does not cover writes, deletes or storage, and that outside scans cannot detect cross-user data exposure.

key takeaway

A URL scan cannot prove user isolation; sign in as a second throwaway account and query the first user's rows, expecting zero results under Supabase row level security.

by read2 min views9 publishedNov 28, 2026

You can log in to your app, see your own data, and everything looks right. That tells you nothing about whether a second user can see yours.

This is called broken access control, or IDOR (insecure direct object reference) when it happens through an ID in a request. It is one of the most common serious bugs in apps built quickly with AI tools, because the app works fine for the one person testing it.

A scanner that checks your public site sees what a visitor sees: JavaScript, headers, public files. Whether user B can read user A's orders depends on your database policies and your server checks, and those only show up when two real accounts are used. Anyone who tells you a scan of a URL proves your users are separated is guessing.

You need two test accounts, A and B. Use throwaway emails, and do this on a staging copy if you can.

If B or a signed-out visitor gets A's data, you have the bug. With Supabase, the browser talks to your database directly using the anon key. That is normal. What protects the data is row level security (RLS). Check these:

user_id = auth.uid(). using (true) on a table that holds private rows. The test for Supabase: sign in as B and run select on A's rows with the Supabase client. You should get zero rows back, not A's data.

Open your Firestore and Storage rules. allow read, write: if true; means everyone. A safe rule ties access to request.auth.uid matching the owner field of the document.

Do not trust an ID sent by the browser. On the server, take the user from the session, then look up the record with both the ID and that user. If the record does not belong to the user, return 404.

ProofForge has a free two-account test for Supabase projects: you enter your project URL, your private tables and the owner column, and it builds a read-only script in your browser. You run it on your own computer with two throwaway test accounts. No keys or passwords go into the form, and it never reports an unclear result as a pass. It only reads, and signing in as test users can write to your authentication logs. It does not test writes, deletes or storage. https://proofforge.live/two-account-test

Question Outside scan Two-account test
Keys in public JavaScript Yes No
Public tables open to everyone Yes Partly
User B reading user A's rows No Yes
Server-side logic bugs No No

Use both. The outside scan is free at https://proofforge.live. Neither replaces a code review.

── more in #ai-tools 4 stories · sorted by recency
── more on @proofforge 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/can-one-user-see-ano…] indexed:0 read:2min 2026-11-28 · —