Before you launch: a security check for sites built with Lovable, Bolt or Cursor
Contents
- 1. Are all secrets out of the frontend?
- 2. Are the database and storage rules closed?
- 3. Is authorisation checked on the server?
- 4. Are debug features, admin tools and files closed?
- 5. Are HTTPS, headers and cookies set correctly?
- 6. Are the dependencies current and real?
- 7. Are the AI features limited?
- 8. Can people report problems to you?
- How do you check what is visible from the outside?
- Frequently asked questions
- Run the external check now
- Sources
Apps built with Lovable, Bolt, v0, Replit Agent, Cursor or Claude Code often go from idea to public URL in a day. The security review is the step that gets skipped, not out of carelessness, but because nothing visibly fails. This checklist is meant for that last hour before launch. It does not replace a penetration test for apps that handle sensitive data or payments, but it closes the gaps we see most often.
Some builders include their own checks. Lovable, for example, introduced a security scan in April 2025; according to the researcher behind CVE-2025-48757, it checks whether Row Level Security policies exist, not whether they are correct (Matt Palmer). Use such tools, but verify the results yourself.
1. Are all secrets out of the frontend?
- Search the build output for secret keys (sk_, sk-, service_role, private keys) and check every VITE_ or NEXT_PUBLIC_ variable: these end up in the browser (Vite, Next.js).
- Scan the repository including its history, for example with gitleaks git -v .
- Rotate every key that was ever in client code or a repository.
- Calls to paid APIs (LLM, mail, SMS) run through your own server function with a login check and a rate limit.
Details: API keys and secrets in the frontend.
2. Are the database and storage rules closed?
- Supabase: RLS is enabled on every table in the public schema, there are no using (true) policies on personal data, and the Security Advisor shows no errors.
- Firebase: no test mode rules, no allow read, write: if true, and rules that tie data to request.auth.uid.
- Storage buckets with personal files are private.
- Test: request a table with only the public key while logged out, then log in as user A and try to read user B's data.
Details and SQL: Supabase and Firebase: open database rules.
3. Is authorisation checked on the server?
- Every API route or server function that reads or changes data checks who is calling and whether that user may access this specific record.
- Change IDs in URLs and requests (for example /api/orders/1001 to 1002) while logged in as a normal user. You must get an error, not someone else's data.
- Admin functions check the role on the server, not just by hiding buttons.
- Fields such as role, plan, price or payment status cannot be set by the client.
4. Are debug features, admin tools and files closed?
- Debug mode is off in production, and error pages show a generic message instead of stack traces.
- No development server, database admin tool or test endpoint is reachable from the internet.
- Your domain does not deliver internal files. Expect 404 for each of these:
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/.env
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/.git/HEAD
- Browser source maps are not published unless you have decided otherwise.
- Old preview deployments and test subdomains are removed or protected.
5. Are HTTPS, headers and cookies set correctly?
- Every hostname, including the API and www, answers on HTTPS with a valid certificate, and HTTP redirects to HTTPS.
- Security headers are set. On platforms that support a _headers file (such as Netlify or Cloudflare Pages), a starting point looks like this; check the Content-Security-Policy carefully against your app before enforcing it:
/*
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
X-Frame-Options: SAMEORIGIN
Content-Security-Policy-Report-Only: default-src 'self'
- Session cookies carry Secure, HttpOnly and SameSite.
- CORS only allows the origins you actually use, never every origin together with credentials (MDN).
6. Are the dependencies current and real?
- Run npm audit (or pip-audit, or your ecosystem's equivalent) and update packages with known vulnerabilities.
- Check every package the AI added: does it exist, is it the one you meant, is it maintained? Models sometimes suggest package names that do not exist, which attackers can register (Spracklen et al.).
- Commit the lock file so that the build installs exactly what you tested.
7. Are the AI features limited?
- The model has no more rights than the user it acts for; tools it can call are limited to that user's data.
- System prompts contain no secrets, and the model's output is treated as untrusted before it reaches a database, a shell or HTML.
- AI endpoints have a rate limit and a spending cap with the provider.
- OWASP's LLM01:2025 Prompt Injection is a good reference for the attack patterns.
8. Can people report problems to you?
- Publish a /.well-known/security.txt with a Contact and an Expires line (RFC 9116), so that researchers who find something know whom to tell.
- Logging and alerts exist for failed logins, errors and unusual costs.
- You know how to rotate keys and take the app offline quickly if needed.
How do you check what is visible from the outside?
Points 1 to 3 and 7 can only be checked in your code and your backend. Points 4 to 6 and 8 are largely visible from the internet, and that is what athorion's free check measures: passively and non-intrusively, without login, it looks at open ports and services, TLS certificates and the HTTPS redirect, security headers and cookie flags, disclosed software versions with known CVEs, subdomains in certificate transparency logs, security.txt and the mail settings of your domain. It does not read your JavaScript and does not test your database rules.
After launch, the external view keeps changing: certificates expire, new subdomains appear, new CVEs are published. The Nightly Audit + Seal repeats the check every night and sends a PDF report; the API lets you trigger checks from your deployment pipeline. All plans are on the pricing page.
Frequently asked questions
Is this checklist enough for an app that processes payments or health data?
No. It covers the most common gaps of vibe-coded apps. For sensitive data, add a professional code review or an authorised penetration test before launch, and clarify your legal obligations, for example under the GDPR.
How long does the check take?
For a typical small app, about an hour if you have access to the code, the backend dashboard and the hosting settings. The external check of your domain takes about two minutes.
Should I repeat the checklist after every change?
Points 1 to 3 after every change to data models, roles or integrations; the external check after every deployment or, better, automatically every night.
Run the external check now
The complete guide behind this checklist is vibe coding security: the 10 most common vulnerabilities. Start with the part every attacker sees first:
Sources
Researched and structured with AI assistance, reviewed for accuracy by Robin Schwarzfeld.