Can Users See Each Other's Data? A 15-Minute Test for Your AI-Built App

The most common security gap in AI-built apps is one user seeing another's data. Here's a simple test you can run yourself, with no code.

By the Prototilt team

If you only run one security test before launch, run this one. And if it fails, don't launch until it passes.

The most common serious gap in apps built with AI is simple to describe: one user can see, or change, another user's data. Security people call it broken access control. You don't need the name. You just need two accounts and fifteen minutes.

Why this gap is so common

When you build alone, there's only ever one user: you. Every record in the app is yours, so everything you see is supposed to be there.

Your app can't show you a problem that only exists when there are two people. That's true well beyond privacy: messages, bookings, marketplaces and payments all have problems that only appear with a second person. This test is your second person.

AI tools usually build the visible part correctly: your page shows "my orders". The question is whether the server also refuses to hand over someone else's orders when asked directly. That part is invisible until you test it.

What you need

  • Two accounts with different email addresses. Call them A and B.
  • Two browsers, or one normal window and one private window, so you can be signed in as both at once.
  • A note to write down what you find.

The test, step by step

1. Create private things as A. Signed in as A, create one of everything your app lets people make: a profile, a post, an order, a booking, an uploaded file, a message.

2. Copy the addresses. As you create each one, copy its web address. Many apps show something like /booking/482 or /profile/7f3a….

3. Open them as B. In the other browser, signed in as B, paste each address. You should see an error or a "not found" page, never A's content.

4. Change the IDs. As B, open one of B's own items and look at the address. If it ends in a simple number, like /booking/483, change it to nearby numbers and try a few. If it's a long random string, guessing won't work, so rely on step 3 instead: pasting A's real addresses is the test that matters. Either way, you should only ever see B's own things.

5. Try to change, not just look. If B can open an edit page for A's item, try saving a change. Then check as A whether it went through. Being able to change someone's data is worse than seeing it.

6. Check files and links. If your app stores uploads (photos, documents), open one as A, copy its direct link, and open it while signed out. Private files shouldn't open for strangers.

7. Sign out and repeat. Paste a few of A's addresses while signed out completely. Anything private should ask you to sign in.

What a pass looks like

Every attempt in steps 3 to 7 ends in a refusal: an error, a "not found", or a sign-in page. Any time you see or change something that isn't yours, write it down: that's a launch blocker.

How to fix what you find

Give your coding tool the exact steps that failed:

"When I'm signed in as user B and open /booking/482, which belongs to user A, I can see it. Make the server check that the signed-in user owns each record before returning or changing it, for every page and every action, not just this one."

That last part matters most. If one page failed, the same gap is very likely elsewhere: it usually means the server isn't checking ownership as a rule, not that one page has a bug. Fix it everywhere, not just where you happened to find it.

If your app uses Supabase, the fix usually lives in Row Level Security policies. Supabase security for beginners explains why this happens and how the rules work.

After the fix, run the whole test again, from step 1.

Make it a habit

Run this test again whenever you add a new kind of data to your app. New tables and new pages are where the gap comes back.

This test covers one gap. Your app has others worth checking: the security checklist for vibe-coded apps lists them, sorted by what blocks launch.

One last thing. If user B can see user A's data, that's not a bug to put on a list for later. It's a launch blocker.

Get your full launch plan. Prototilt asks you a few questions about the app you built and shows you the whole map from "it works" to "launched": every step, in order, marked launch blocker, should do or nice to have, with the prompts to use in your coding tool.

See your plan's steps for free →

By the Prototilt team. Written with AI tools and reviewed by Aline Sadate, Prototilt's founder.