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-account test. It takes about ten minutes. What you need Two disposable test accounts on your own app…
The two-account test is a method to determine whether a user can access another user's data in an AI-built application. It takes around ten minutes and requires two disposable test accounts on the app, not real customer accounts. The process involves signing in as user A, creating fake data, and noting its ID. Then, sign out and sign in as user B to attempt to access user A's record directly.
The test checks if user B's list contains user A's rows and if B can edit or delete A's record. Running this test before each release and treating "unknown" results as not yet passed is recommended. ProofForge offers a free two-account test builder for Supabase that performs a read-only local script, ensuring no keys or passwords are exposed. This test covers what a visitor can see but does not constitute a full audit.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to