Vibe-Coded App Security Checklist: 12 Things We Check Before Launch
AI coding tools build the path a user takes when everything goes right. Security problems live on the other paths: another user's ID in the URL, a webhook that arrives twice, a key that ended up in the browser. These 12 checks cover the places where we find problems most often in apps built with Cursor, Lovable, Bolt, Replit, v0 or Claude Code.
On this page
Run them yourself, or hand the list to a developer you trust. Each one takes minutes to hours, not weeks.
Access and identity
1. Every API route checks who is calling
Open each server route or API handler. Find the line that reads the logged-in user from the session or token. If a route reads userId from the request body or query string and trusts it, anyone can act as anyone.
Test: log in as user A, copy a request from the browser network tab, change the ID to user B's, and send it again.
2. Database rules hold up with a second account
If you use Supabase, every table with user data needs Row Level Security enabled and a policy that compares the row's owner to auth.uid(). Firebase needs the equivalent in security rules. "RLS enabled" with a policy of true does nothing.
Test: create two accounts. As A, query B's rows directly with the anon key from the browser console. You should get nothing back.
3. The service role key never reaches the browser
Search your built JavaScript bundle (not just the source) for service_role, sk_live, SUPABASE_SERVICE, and any long random string. In Next.js, any variable starting with NEXT_PUBLIC_ ships to the client. A service role key there bypasses every RLS policy you wrote.
4. Password reset and email change cannot be hijacked
Reset tokens must expire, work once, and belong to the account that asked. Changing the email address should require the current password or a confirmation to the old address.
Secrets and configuration
5. No secrets in git history
Deleting .env from the repo today does not remove it from history. Run git log -p -- .env and a scanner like gitleaks. If a key ever appeared, rotate it. Assume it is already public.
6. Admin routes are not reachable by guessing
AI tools often generate /admin, /dashboard/admin or /api/admin/* and protect them only by hiding the link. Request them directly as a normal user.
Money
7. Prices come from the server
If checkout sends price: 4900 from the browser and the server passes it to Stripe, a user can pay 1 cent. The server should look up the price by product ID.
8. Webhooks verify the signature and handle duplicates
Stripe and other providers sign webhooks. Verify the signature with the raw request body. Providers also retry, so the same event can arrive twice. Store processed event IDs and skip repeats, or a retry will grant a subscription twice.
Input and output
9. User input never reaches a query or HTML unescaped
Look for string-built SQL, dangerouslySetInnerHTML, and markdown rendered without sanitising. File uploads need a type and size check on the server, not just in the file picker.
10. Rate limits on login, signup and anything that sends email or SMS
Without them, someone can brute-force passwords or run up your email bill overnight.
Operations
11. Errors reach a person
You need browser and server error monitoring with alerts going to a channel someone reads. Without it you learn about crashes from customers, or from a colleague who happens to use Safari. We wrote up our own 30-minute Sentry setup.
12. You have restored a backup at least once
A backup you never restored is a guess. Restore last night's backup into a scratch database and check that the app runs against it.
How to prioritise what you find
Fix in this order:
- Anything that exposes another user's data (checks 1-3).
- Anything that loses or takes money (7-8).
- Leaked secrets (5), rotate first and clean up after.
- Everything else.
The good news: these are fixes, not rewrites. The app structure is usually fine; it is missing the production layer.
If you would rather have someone run the checks, write up the findings by severity and fix them in place, that is our vibe-coded app rescue and security audit. It starts with a free 30-minute repo health check.
