Skip to content

Docs

Can one user see another user's data in your app?

You find out by trying it, with two test accounts. In an app built with Claude Code, Codex or Cursor, this is one of the most common holes: the app fetches a record by its id and never checks that it belongs to the person asking. Nothing errors, every page looks fine, and one customer can read another's orders.

Why it happens

The 20-minute check, no code

  1. Make two test accounts, A and B. Never use a real customer's account, and avoid steps that send real emails or take real payments.
  2. As A, create something: an order, a note, an invoice. Open it and copy the address from the browser.
  3. Sign in as B and paste that address. If A's record opens, the app is leaking.
  4. Try the other doors as B: lists, search, exports and downloads. Does anything of A's show up?
  5. Try changing, not only reading. As B, open the edit screen with A's record id in the address, or press delete on it. Changing is worse than reading.
  6. Look under the screen. In your browser, open the developer tools (right click, Inspect), choose the Network tab and reload a page as B. Click the requests and read what came back. If the response holds other people's names, emails or ids, the screen is hiding a leak, not stopping one.

When you're done, delete the test records and accounts so they don't show up in your reports.

If every step comes back empty, that is one good sign, not proof. An app can still leak through a request no screen makes.

Make your coding agent show you

Paste this into Claude Code, Codex or Cursor in your app's repository:

List every place this app reads, changes or deletes a record by its id: pages, API routes, server actions and database queries. For each one, show the exact line, or the database policy, that checks the signed-in user is allowed to do it. If neither does, say “nothing checks this”. Do not change any code yet.

Every “nothing checks this” is a hole to fix first. Then ask the agent to write a test for each: as user B, try to read and change A's record, and expect a refusal.

If you use Supabase

Related: how to test your app's business logic and how to tell if an AI change broke your app.

What Pariter does

Pariter checks every change to your code against your app's business rules and tells you and your coding agent when one breaks. The rulebook and the self-check are free now, with no account: pariter.ai/docs/rulebook.md. The independent check on every push runs through Pariter's connector (add it): one proof alert is free, and the check on every push is not on sale yet. Leave your email and your app's address to hear when it is.