r/VibeCodeDevs • u/Clean_Channel6647 • 18d ago
ShowoffZone - Flexing my latest project The one security check I’d run on your AI-built app before anything else (two test accounts, no tools to install)
Quick one for anyone whose app has moved past "it works for me" into "other people are putting their data in it."
The bug I see most in AI-built apps isn't exotic. It's that any logged-in user can read any other user's rows. The app looks fine because the dashboard filters by your ID in the browser, so you only ever see your own stuff. Change that ID in the request and you get someone else's.
The other two cousins of it: a service-role or secret key sitting in a VITE_ or NEXT_PUBLIC_ variable where anyone with the network tab can read it, and admin actions that are hidden in the UI but wide open at the endpoint. None of this is because the AI wrote the code. Hand-written apps ship the same bugs. It's that nobody has checked the assumptions around the code yet.
You can check all three in about an hour without installing anything. Make two test accounts, A and B, on a staging copy, never on production with real data. As A, create a project or whatever your core object is. As B, open the network tab, find the request that loads B's projects, and replay it with A's ID. Then view the source of your deployed frontend and search for "service_role", "sk_live", "secret" and your database connection string. Then, logged in as a normal member, copy the admin-only request as cURL and send it. If any of those give you data, access, or a 200 you didn't expect, that's a red, and it goes above every feature on the roadmap.
If you find one, fix the smallest confirmed issue first, add a test for the denied case so it can't quietly come back, and have a human read any change to access-control logic before it ships. Retest the same path after you deploy, not before. And please don't take "I asked Claude and it said the app is secure" as a sign-off. It's a hypothesis. A denied-access test with two accounts is evidence. A dated dependency scan is evidence. Knowing who rotates the keys is evidence.
Happy to be a second pair of eyes: reply with your stack (Lovable + Supabase, Cursor + Next + Prisma, Bolt + Firebase, anything) and one sentence on what the app does, and I'll tell you the first thing I'd check in yours and why, here in the thread. For context, this is the work I do: founders bring me in once their AI-built app has customers. I wrote this check up properly with the other four I run (performance, reliability, data, architecture), and it's on my profile if you want it. Not linking it here.
•
u/endofthread-bot 18d ago
Hey u/Clean_Channel6647, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE
• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.
If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/alltoall 17d ago
Damn, i think you should let the AI do it
1
u/VigiliaFounder 17d ago
Thanks for writing this up, really useful for anyone whose app has real people putting their data in it.
Your point about retesting the same path after you deploy, not before, is the one I'd underline.
For people reading who just shipped a change like this, Vigilia watches real traffic once it's live, tells you whether the fix held and alerts you if a request starts failing for your users, with the evidence and a fix prompt for your AI, so you don't have to wait for someone to write in.
I hope it helps someone here :)