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.

The 10-Second Test That Protects Your Vibe-Coded App

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

  1. Make two accounts in your app.
  2. Put something private in the first one.
  3. 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.

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!