What Should You Check Before a Vibe-Coded App Goes Public?
Run ten checks against your live app, in order, using two test accounts. Each one has a visible pass or fail, so you don't need to read code. An AI security review and your tool's scanner are good first steps, but neither one replaces trying to break in yourself.
Do a security review of this app as an attacker. Work in this order and don't change any code in this pass. 1. Secrets in browser code, the repository or logs. 2. Database tables or storage buckets readable or writable without signing in. 3. One user reaching another user's records by changing an ID. 4. API routes and server functions that work without signing in. 5. Fields the browser can set that it shouldn't: price, role, owner_id, is_admin, plan. 6. Input the server doesn't validate, including file uploads and HTML that gets displayed. 7. Debug settings, detailed errors, CORS, leftover test routes and accounts. 8. Missing rate limits on login, password reset, email, SMS, AI and uploads. 9. Known vulnerable or unused dependencies. 10. Keys that should be rotated before launch, and how I would restore the database. For each one, give me a table with: finding, file and line, how sure you are, how bad it is, and one command or click test that I can run myself to confirm it. Mark anything you couldn't check from the code as NOT VERIFIED, rather than saying it's fine. Don't say something is fixed until the test shows it. After I approve the fixes, write automated tests for items 2 to 5, so they fail if a future change brings the problem back.
- 1Browser: no secrets, nothing trustedchecks 1, 5, 6
- 2Your server: checks identity and limitschecks 4, 7, 8
- 3Database: rules hold if the app failschecks 2, 3
- 4Your accounts: keys, spending, backupschecks 9, 10
Try it now
- 1Create two test accounts and open your live app, not the preview. Replit's docs note that published apps have their own secrets and database, so results from a preview don't carry over.
- 2Run your tool's scanner first: Run deep scan in Lovable's Security view, Security Audit in Bolt, or Supabase's Security Advisor. On v0, use the branch menu's Review Code.
- 3Paste the prompt above into a fresh session, then work through the ten checks in the example below. Record pass or fail next to each.
- 4It's done when all ten pass on the live domain and you've re-run each check you had to fix.
Use it when
Before anyone but you can reach the app, and before each launch. Run checks 2 to 5 again after any change to tables, routes or login, because new tables and routes are where gaps come back.
Skip it when
A local experiment no one else can reach can wait, as long as it holds no real data and no live keys. Don't treat a clean run as a certificate for an app holding health, financial or children's data. Pay for a professional review there, as Lovable's docs also advise.
Why it works
These checks come from what OWASP ranks highest, broken access control and security misconfiguration, plus the rules vendors publish for their own products. They work from outside because that's where an attacker stands. A bug you can see from outside is real, however good the code looks.
Scanners help, but their limits are in their own docs. Lovable says its scans can't guarantee complete security, and it recommends a professional review for sensitive data. Bolt's Security Audit checks your database, not your whole project. Supabase notes that some advisor findings may be intentional, so you still have to judge them.
Rule of thumb, not a vendor figure: an AI reviewing code it just wrote tends to share the assumptions that caused the bug. Asking for a review in a fresh session helps, and so does asking for the test that proves the fix.
Example
Here's the full run for a notes app on Supabase, with what a pass looks like:
- 1. Secrets: the DevTools Search panel finds no
sk_,sb_secretorservice_role. Public keys are fine. - 2. Open tables:
curlon each table with only the publishable key returns[]or a permission error. - 3. Other users: user B, using Copy as cURL with A's note ID, gets nothing back.
- 4. Signed out: the same request with no token returns
401. - 5. Tampering: B sends
is_admin: trueor another user'sowner_id, and it's refused. - 6. Input: a 10,000-character title returns
400, and<img src=x onerror=alert(1)>shows as plain text. - 7. Config: a broken request gets a generic error,
/.envisn't served, and a foreign origin isn't echoed. - 8. Abuse: 20 quick password resets get refused, and each paid provider has a spending limit or alert.
- 9. Dependencies:
npm audit --omit=devshows nothing high or critical, or you've noted why it's acceptable. - 10. Recovery: you've rotated keys used during development, and restored a backup at least once.
Going further
Turn it into a gate so it keeps working. OWASP says to include access control checks in your unit and integration tests. Policy tests run with supabase test db, and npm audit --audit-level=high exits with an error at that severity or above, so it can fail an automated build. On GitHub, branch protection can require those checks to pass before merging.
Be careful with the review prompt on a real repository. A copied request contains a login token, and a .env file contains keys, so don't paste them into a chat. In Claude Code, a Read(./.env) deny rule blocks its file tools from reading that file. Claude Code's docs also say CLAUDE.md is context rather than enforcement, so a written rule won't stop it, and a deny rule will.
Stripe suggests rotating keys before going live, in case they were saved outside your code during development. Keep a dated copy of your results, since it shows what you checked and when.
Common mistakes
- Treating a clean scan as a pass. Scanners find common patterns and miss rules only your business defines, such as who may see which invoice.
- Testing with one account. Most access bugs can't show up until a second user exists.
- Believing "fixed" without re-running the test. Ask for the test, and run it yourself.
- Running the checklist once. Lovable's own list includes confirming that new tables have policies, because each new feature can reopen the gap.
Sources
- A01 Broken Access Control, OWASP Top 10:2025
- A02 Security Misconfiguration, OWASP Top 10:2025
- Security overview, Lovable docs
- Security best practices, Lovable docs
- Bolt Database, Bolt support
- Database advisors, Supabase docs
- Row Level Security, Supabase docs
- Troubleshoot publishing, Replit docs
- npm audit, npm docs
- About protected branches, GitHub docs
- Configure permissions, Claude Code docs
- How Claude remembers your project, Claude Code docs
- Go-live checklist, Stripe docs
- Network features reference, Chrome DevTools docs
- Search panel, Chrome DevTools docs
- GitHub, v0 docs
Checked 6 November 2026. Products change often, so confirm details with the vendor.