Two-account test: can user B see user A's data in your AI-built app? A 10-minute check
Most security scanners look at your app the way a stranger does. That is useful, but it cannot answer the question that sinks most AI-built apps: can user B see user A's data? That depends on who is signed in, and a scanner that never signs in cannot know. The only honest way to check is the two-ac

Most security scanners look at your app the way a stranger does. That is useful, but it cannot answer the question that sinks most AI-built apps: can user B see user A's data?
That depends on who is signed in, and a scanner that never signs in cannot know. The only honest way to check is the two-account test. It takes about ten minutes.
Pass means B and the anonymous visitor get a 403, 404 or an empty result every time. Fail means any of them sees or changes A's data.
If your app talks to the database straight from the browser, the rules are the whole defense. For Supabase, call the REST endpoint with user B's token and filter on A's user id. If rows come back, your row level security policy is missing or too wide. For Firebase, run the same read against A's document path as B.
AI tools build screens that work for the one account the builder is testing with. Ownership checks are invisible until a second person shows up. A page that loads fine for you can still hand out the whole table.
Run the test before each release, keep the results, and treat an "unknown" (login failed, request blocked) as not yet passed. ProofForge has a free two-account test builder for Supabase that makes a read-only local script. Your keys and passwords stay on your machine.
A clean scan is not a full audit. It only covers what a visitor can see, which is why the two-account test matters.
I work on ProofForge. Try the builder here: two-account test.
Check your own app from the outside, free. Run the free ProofForge scan on your live URL. No account needed for the first scan. It looks at your public site the way a stranger would and says pass, fail or inconclusive, so you know what is confirmed and what it could not see. One-time reports start at $9: see pricing. Building with an AI agent? There is an MCP server so it can check before it deploys.