Reconvio
Zpět na blog
Security 1 min čtení

5 security holes I find on almost every AI-built site

AI tools like Lovable, v0 and Bolt build a site in an afternoon — and just as fast, build in the same mistakes over and over. Here are the five most common.

Marek Křivan · 14. července 2026

Sites built fast with AI have one thing in common: the same mistakes keep coming back. Not because AI is stupid, but because it optimises for "it works", not for "it's safe". After a year of audits, a handful of findings recur often enough to rank them.

1. An exposed .env file

The most common and the most dangerous. The config file holding your database credentials, API keys and secrets, reachable straight from the internet:

https://your-site.com/.env → 200 OK

Anyone can download it and walk away with the keys to the kingdom. The fix is trivial — never deploy .env into the webroot — but AI generators leave it there routinely.

2. Keys sitting in the page source

A Stripe key, an OpenAI token, a Supabase service key — hardcoded into JavaScript that every visitor downloads. "It's only the frontend" is not an excuse; a secret in the browser is a secret in the wild.

3. Missing security headers

Without Content-Security-Policy the site is open to injected third-party scripts (XSS). Without Strict-Transport-Security the connection can be downgraded to plaintext. Headers cost nothing, and AI almost never sets them.

4. An open .git directory

Deploy the whole working directory and the commit history ships with it — publicly downloadable, and often still holding the deleted keys someone believed were gone.

5. A database without Row Level Security

Supabase and backends like it are excellent, right up until you forget to switch RLS on. Then anyone can read other people's data straight through the public API.


None of these needs a hacker. Curiosity and a browser will do. The good news: all five can be found in under a minute — which is exactly why Reconvio exists.

Zjistěte, co váš web prozrazuje

Spusťte zdarma audit a za půl minuty máte konkrétní nálezy — bez registrace.

Zkontrolovat web