The 10-Second Test That Protects Your Vibe-Coded App
Logging in isn't the same as being allowed in. Here's how to check your vibe-coded app for broken access control, the number one security risk on the web, with two test accounts and one prompt.
You can build a solid login page, get Google sign-in working nicely, and still leave every one of your usersâ data exposed.
I know. Rude. But the fix is not complicated, and the test literally takes about 10 seconds.
Logging in is only half the job
Logging in only proves who you are. Thatâs called authentication.
The part most vibe coders miss is authorization: whether youâre actually allowed to see a specific thing. Itâs the app saying, âYes, sheâs logged in. But does this record actually belong to Kedasha?â
Hereâs what it looks like when that check is missing. Say my account page URL ends in /user123. I change it to /user124, and someone elseâs profile loads.
Thatâs called broken access control. It means anyone who signs up can read everybody elseâs private information. And this is real: broken access control is the number one security risk on the web right now, and in the latest data, every single app tested had some version of it.
Check yours right now
- Make two accounts in your app.
- Put something private in the first one.
- Log into the second account and try to open the first accountâs private thing (for example, by changing the ID in the URL).
If you can open it, youâve got broken access control.
The fix
Tell your coding agent:
On the server, check that the logged-in user owns or has permission to access each record. If they don't, deny access.The âon the serverâ part matters. Thatâs the part of your app users canât mess with from their browser.
Then run the two-account test again to make sure itâs actually fixed.
Building secure AI-powered apps doesnât have to be super complicated. Sometimes itâs two accounts and one prompt.
Want more vibe-code-securely tips like this? Join my newsletter.
Happy building!
Kedasha
This post was written with the help of AI from a human-written YouTube script.
-
Never Write Custom Date and Time Logic With AI
-
gh secure: The GitHub Tool That Locks Down Your Repo in 2 Minutes
-
The Terrifying Fine Print of Personal AI Agents
Related Posts:
Written by
Kedasha Kerr
Software Developer
in Chicago
I write about building with AI.
Let's stay connected! đ
Get the next post delivered to your inbox and follow me on Instagram for daily AI tips and coding content.
See you on Instagram!