Dev.to Security 🔐 Cybersecurity 👁 2 📖 4 min read

I checked 19 AI-built apps against a pre-launch safety list. The famous hole wasn't the common one.

I keep a fixed pre-launch checklist — 18 items, the boring stuff that actually takes apps down: secrets in source, .env in git, wildcard CORS, database permissions, webhook verification, rate limits on AI endpoints. Thi

I keep a fixed pre-launch checklist — 18 items, the boring stuff that actually takes apps down: secrets in source, .env in git, wildcard CORS, database permissions, webhook verification, rate limits on AI endpoints.

This week I ran the statically-checkable part of it against 19 public GitHub repos: 9 apps built with AI generators (Lovable, v0, Bolt), 7 open-source AI SaaS apps, and 3 templates/boilerplates (labelled as such). Method rules, stated up front:

  • Every raw grep hit got read in context, by a human, before it counted.
  • Anything not visible from public code is reported as unverifiable, not as a pass or a fail.
  • No dependency audit in this pass. No repo names — the pattern is the finding.

TL;DR

Check Applied to Confirmed
Hardcoded secret/password in source 19 1 (and 0 live API-key-shaped strings)
.env tracked by git 19 4 — 0 of them contained a live secret
Wildcard CORS 19 3
Supabase RLS evidence 7 using Supabase 6 yes, 1 unverifiable
Payment webhook verification 6 with callbacks 6 of 6 verified
Rate limiting on AI endpoints 13 calling AI APIs 1 of 13 had any

The finding that surprised me: AI endpoints with nothing in front of them

13 of the repos call an AI API. In 12 of them I could not find a rate-limiting implementation anywhere in the server code — no middleware, no limiter library, no platform config in the repo.

Two of the 12 did handle the provider's 429 error and showed users a "rate limit reached" message. That's not a limit. By the time you see the 429, the spend already happened.

The one exception used rate-limiter-flexible's in-memory limiter around its OpenAI service. One out of thirteen.

An unmetered AI endpoint is an open tab on your API account. Generators rarely add a limiter unprompted because nothing in the happy path asks for one — the app behaves identically with or without it, right up until someone scripts it.

The near-miss finding: .env in git, four times, zero live secrets

Four repos track .env-style files. I opened every single one, expecting the usual disaster. Instead:

  • One held a Supabase URL + publishable key (the one designed to be public)
  • One held secret-shaped variable names (OpenAI key, payment key, signing secret) with blank/placeholder values
  • One held only an environment name and a host address
  • One held project config and domain names

Good hygiene on values, bad hygiene on files. A .env that git tracks today is still tracked the day someone pastes a production key into it during a rushed deploy — and git history doesn't forget it when the file gets deleted later.

Wildcard CORS, once with the whitelist commented out

Three hits. The best one: a Fastify server with origin: true and the comment // Accept all origins — with the environment-based whitelist sitting commented out on the next line. The safe version was written, set aside to make a deployment error go away, and never switched back on.

Wildcard on a credential-free public endpoint? Mostly harmless. Framework-level wildcard that applies to every route, including authenticated ones? That's the version that matters.

What was better than expected

  • Payment webhooks: 6 for 6. Stripe constructEvent, a Lemon Squeezy payload validator, a framework-managed endpoint. The famous hole is being closed by default now.
  • Supabase RLS: 6 of 7 projects had policies in their migrations. One had a whole migration dedicated to tightening policies to the project owner. The 7th had no SQL in the repo at all — unknown, not a failure.
  • Hardcoded credentials: exactly one repo — a password literal in a server config, written twice.

The false-positive lesson (the part I actually want you to steal)

Run a scanner over these 19 repos and don't read the hits, and you'll report dozens of "hardcoded secrets." Read them and almost all dissolve:

  • Key-shaped strings inside a bundled CSS file (a task-list class name shares characters with a key prefix)
  • An sk- match inside the script name stop-task-executions
  • Seven password/secret literals that were test fixtures
  • A backup script whose "password" was a $(op ...) command substitution pulling from a password manager at runtime — the opposite of hardcoding

A scanner is a metal detector. It tells you where to dig, not what you found. Every number above is the count after the digging.

What this check can't see

Dependency CVEs (not run in this pass), upload validation, per-route authorization, and anything configured outside the repo — platform-edge rate limits and dashboard-set RLS are invisible from a clone. "No implementation found" always means "none in the public code."

The five-minute version for your next launch

  1. Search your source for key-shaped strings. Read every hit yourself.
  2. Ask git if it tracks any .env file. Open whatever it names.
  3. Read your CORS config. Is the whitelist you remember writing the one that's enabled?
  4. If you call an AI API, find the limiter in front of the endpoint. Can't find it = it isn't there.
  5. If you take payments, confirm the webhook verifies the signature before it touches an order.

Full write-up with the complete 18-item list: We Checked 19 AI-Built Apps Against a Pre-Launch Safety List

And if you'd rather have the full list run for you: the Pre-Launch Ship Check is $149 per repository — go/no-go verdict, every item marked pass / fail / n-a / not-checked-with-a-reason, and a copy-paste fix prompt for each failure. It's a checklist run, not a pentest, and a GO means the list passed — not that an app is guaranteed secure.

What does your pre-launch list look like? I'm collecting items for v2 of mine.

📰 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.