vibeworthy
All posts

Before someone hacks your vibecoded app

· 4 min read

In this post

Before you share your app, check that strangers can't take your passwords, read other people's information or spend your money. You don't need to be a programmer to start. These checks lower the risk, but no app is hack-proof.

Are your secret keys hidden?

Your app uses keys to talk to other services, such as a database or an AI tool. A key is a long password for software. Some are made to be public. Secret ones are not, because whoever has one can act as you.

  • Don't leave secret keys where people can see them. That means the part of your app that runs in someone's browser or phone, and the place your code is stored.
  • With Supabase (a popular place to store app data), the publishable key can be public and the secret key can't. The secret one gets past your data rules. Older projects call these two anon and service_role.
  • With AI services, a leaked key lets strangers use your account. OpenAI warns that others could make requests on your behalf, and you might pay for them.
  • With Next.js (a common tool for building web apps), any setting whose name starts with NEXT_PUBLIC_ is sent to the browser. A secret key should never start with that.

If a secret key has already gotten out, cancel it and make a new one first. Erasing it from your code doesn't stop the old one from working.

Can one person see another person's stuff?

You can test this yourself:

  1. Make two accounts in your app.
  2. Save something in the first one.
  3. Sign in to the second one and try to find it.
  4. If the web address has a number or code in it, swap in the one from the first account.

If the second account can see or change the first account's things, fix that before anyone else signs up.

The fix has to happen on your server, which is the part of your app that visitors can't touch. Hiding a button or using a hard-to-guess web address isn't enough. A well-known security group, OWASP, says to check permission every time someone asks for something.

If you use Supabase, these permission rules are called Row Level Security. They decide who can see and change each row of your data. Turn it on for every table your app can reach, then add rules for who can view, add, change and delete. Your app may show no data until you add those rules.

Check the rules your AI tool wrote. If you see using ( true ) on a rule for viewing data by people who aren't signed in, they can see every row that rule covers. Only do that for information meant to be public.

Supabase also has a free checkup tool called Security Advisor that points out problems such as badly set rules.

Can a stranger run up your bill?

Bots are programs that can fill out your forms over and over. If each AI answer, email or text message costs you money, that adds up.

Are your own accounts locked?

Someone who gets into your accounts may not need to hack your app at all. Turn on two-factor sign-in wherever you can: where your app is hosted, your database, your web address and your code. It asks for something besides your password, often a code from your phone.

Could you get your data back?

Save a copy of your data before you change any rules or let your AI tool run a fix. Supabase makes daily copies for its Pro, Team and Enterprise plans. On the free plan, it tells you to save your own copies and keep them somewhere else. Its database copies also don't include uploaded files.

What should you ask your AI tool?

Pick one, copy it and paste it in.

Keys only

Search this whole project for passwords and secret keys, including settings files and old code. Tell me which ones the browser can see and how to move them to the server. Don't change anything yet, and don't print the keys back to me.

Other people's data

Pretend you're a signed-in user trying to see or change someone else's information. List each way you could try, whether it would work and how to fix it. Don't change anything yet.

Surprise bills

List everything in this app that costs me money when someone uses it. For each one, tell me what stops a bot from using it over and over. Suggest a simple limit.

Don't take its word for it. Test with your two accounts too. If your app handles payments, health details or other private information, pay someone who knows security to look it over.

Done your checks? Now get people using it

An app nobody has seen isn't helping anyone yet. Submit yours to Vibeworthy, the launch board for apps built with AI tools. You get:

  • A spot on the monthly ranked board.
  • Your own app page, with a link search engines can follow.
  • Upvotes, feedback and a shot at the monthly top 3.

You only need a few details to start. Submit your app while it's fresh in your mind.

Want one person to try it first? Read vibecoding isn't worth it...unless.

Sources (12)