Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 7 min read

How to check if your vibe-coded app is secure: 8 checks by hand

Test the running app, not only the code. Open it signed out and read what its data requests return, use two test accounts to see whether one can reach the other's records, and search what the browser downloads for secret

Test the running app, not only the code. Open it signed out and read what its data requests return, use two test accounts to see whether one can reach the other's records, and search what the browser downloads for secret keys. The eight checks below need a browser's developer tools and two test accounts, and none of them needs you to read the code.

Saqr (usesaqr.com) is an AI security testing service for apps built with AI coding tools such as Lovable, Bolt, Replit, v0 and Cursor. From $19 a month, cancel any time. Tests only apps you have shown are yours.

Originally published at usesaqr.com. Last checked 24 November 2026.

Why is a code review not enough?

AI coding tools and their built-in scans read code and settings, and they are worth running every time. Your users meet the deployed app: the scripts it sends to the browser, the data its API returns and the rules on its database. A rule can be valid and still too broad, and a key can pass a review and still ship to every visitor.

A dated snapshot shows why the live app is worth testing: in October 2025, Escape reported analysing over 5,600 publicly available apps built on vibe coding platforms and finding more than 2,000 vulnerabilities and over 400 exposed secrets (Escape; Escape sells security testing). It says nothing about any particular app.

What do I need before I start?

  • Two test accounts in your own app, each with a little data of its own: a profile, an order, a file.
  • A private browser window, so you start signed out.
  • The developer tools: the Network tab to read requests and responses, and Search to look through every loaded script (Chrome DevTools).

Do these checks only on an app you own or have written permission to test, with test accounts you created. Where a check changes data, use a staging copy if you have one.

Which checks should I do by hand?

Eight checks, roughly in order of how much they matter. Each links to a free prompt for your AI coding tool if the check fails.

1. Read what the app returns while signed out

In a private window, open the app and the Network tab, and filter to Fetch/XHR. Click through the public pages and open each response. Only data meant for everyone should come back. Email addresses, orders, messages or other people's profiles in a signed-out response mean that data is reachable without signing in.

If it fails: Require sign-in on every API route by default

2. Try to open another account's records

Sign in as the first test account and open something that belongs to it. Note the id in the address or in the request. Sign in as the second account and ask for the same id. A safe answer is 401, 403 or "not found". If the first account's data comes back, the app checks that you are signed in but not that the record is yours. OWASP lists broken access control first in its Top 10 for 2025, and its cheat sheet explains the fix.

If it fails: Stop one user reading another user's records by changing an id

3. Search the browser's scripts for secret keys

Use Search in the developer tools to look through every loaded script for secret, sk_, service_role, sb_secret_ and the names of the paid services you use. Variables that start with VITE_ (Vite) or NEXT_PUBLIC_ (Next.js) are sent to every visitor. Keys documented as public, such as a Supabase publishable key or a Firebase API key, are fine there. A secret key is not: rotate it first, then move the call to the server.

If it fails: Move secret keys out of the browser bundle

4. Ask for files that should not be public

Open /.env and /.git/config on your domain. A safe answer is "not found" or your app's normal page. Then check whether the scripts have source maps next to them (the same address ending in .map): a source map lets anyone rebuild the original code (MDN). That is not always a problem, but it should be a choice.

5. Visit admin and internal pages directly

Type the addresses of pages that are not linked for everyone, such as /admin or a settings page, first signed out and then as an ordinary test account. Hiding a link is not protection. The page, and the data requests behind it, should refuse anyone who is not allowed.

If it fails: Require sign-in on every API route by default

6. Try the limits on sign-in and password reset

On one of your test accounts, enter a wrong password about ten times, then ask for a password reset several times in a row. A wait, a lock or a challenge should appear. Without one, passwords can be guessed and inboxes flooded.

If it fails: Add a rate limit to sign-in and password reset

7. Check what uploads accept and who can open them

If the app takes uploads, try a file type it should refuse, such as an .html or .svg file, and see whether it is accepted and opens as a page on your domain. Then copy the address of a private upload, sign out and open it.

If it fails: Lock down open storage buckets

8. Read the response headers and an error page

In the Network tab, select the page itself and read its response headers. A content security policy, Strict-Transport-Security, X-Content-Type-Options and protection against framing limit the damage of other mistakes (OWASP cheat sheet). Then open an address that does not exist and confirm that no stack trace or file path appears.

If it fails: Add the standard security headers

What should I do with what I find?

Start with anything that lets one person read or change another person's data, and with secret keys in the browser. For a key, rotate it in the provider's dashboard before anything else, because the old one must be treated as known.

Then describe each problem precisely to the AI coding tool that built the app: what is wrong, where, the behaviour you want instead, and how you will check it. The fix prompts are written in that shape. Verify the fix on the running app by repeating the check, not by asking the tool whether it worked, and repeat the checks after each release that changes data, sign-in or uploads.

For platform-specific steps, see the guides for Lovable, Bolt, Supabase and Firebase.

Questions

What is a vibe-coded app?

An app built mostly by describing it to an AI coding tool such as Lovable, Bolt, Replit, v0 or Cursor, rather than by writing the code by hand. The checks are the same as for any web app; the difference is that the builder may not have read the code that handles data and sign-in.

Is the security scan in my AI coding tool enough?

It is a good start and worth running every time. It mostly reviews code and settings, so it does not show what the deployed app returns to a real request, for example whether one signed-in user can read another user's records.

Can I run these checks on someone else's app?

No. Test only apps you own or have written permission to test, and only with test accounts you created.

How often should I check?

Before launch, and again after any release that changes data, sign-in or file uploads. A check tells you what was true on the day you ran it.

Where does Saqr fit?

These checks cover what is on the list, on the pages you think to try. Saqr runs this kind of test on the live app for you, in a real browser and including signed-in pages, and shows the proof for each finding with a fix prompt for your AI coding tool. After you fix something, ask it to recheck. Plans are Starter at $19 a month and Pro at $49 a month, and you can cancel any time. The sample reports from a demo shop are public and unedited.

No test can promise an app is secure. A task tells you what Saqr found that day, with proof.

More guides: Is my Lovable app secure? ยท How do I test Supabase row level security? ยท How do I check my Firebase security rules? ยท Free fix prompts

Sources

Checked on 24 November 2026.

  1. Escape: study of 5,600 publicly available apps, 29 October 2025
  2. OWASP Top 10 (2025): A01 Broken Access Control
  3. OWASP cheat sheet: Insecure Direct Object Reference Prevention
  4. Vite documentation: Env variables and modes
  5. Next.js documentation: Environment variables
  6. MDN: Source map
  7. OWASP cheat sheet: HTTP Security Response Headers
  8. Chrome DevTools: Search across all loaded resources

Saqr is independent and is not affiliated with Lovable, Bolt, Cursor, Supabase, Firebase, Vite or Next.js. Each name is a trademark of its owner.

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.