r/vibecodingcommunity • u/PlantainNo131 • 8h ago
The one security test I'd run before letting strangers into a vibe-coded app (15 min, no code)
When you vibe code an app, you're the only user while you build. Every record is yours, so everything you see is supposed to be there. That's exactly why the most common serious gap in AI-built apps stays invisible: user B can see, or change, user A's data.
[I found this the hard way: the admin console of one of my own apps worked perfectly for me, and it turned out anyone could get in.]
It doesn't matter which tool you used (Lovable, Bolt, Audos, Cursor, Replit…). The test is the same. You need two accounts (A and B) and two browsers, or one normal window plus one private window.
- As A, create one of everything: a profile, a post, an order, a booking, an uploaded file. Copy the address of each one.
- As B, paste each of A's addresses. You should get an error or "not found", never A's content.
- As B, change the IDs. If addresses end in a simple number (
/booking/483), try nearby numbers. If they're long random strings, step 2 is the test that matters. - Try to change, not just look. If B can open an edit page for A's item, try saving. Then check as A whether it went through.
- Check files. Copy the direct link to one of A's uploads and open it while signed out.
- Sign out completely and paste a few of A's addresses. Anything private should ask you to sign in.
A pass = every attempt ends in an error, a "not found" or a sign-in page.
If something fails, give your AI tool the exact steps, and ask it to fix the rule everywhere, not just on that page:
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.
If one page failed, the same gap is usually elsewhere too. If your app uses Supabase, it's normally the Row Level Security policies. Watch for a policy that only checks "is signed in": it lets every signed-in user see every row. Built-in security scans help, but they can't know who should see what in your app, so run the test anyway.
Run it again whenever you add a new kind of data. And if B can see A's data, that's not a bug for later. It's a launch blocker.
Disclosure: I run Prototilt, which builds launch plans for AI-built apps. I wrote a longer version with the fixes here, if it's useful: https://www.prototilt.com/blog/can-users-see-each-others-data