We scanned 1,072 vibe-coded apps

/ 2 min read / #ai #appsec #supabase #rls #research

This is my rewrite of a study I worked on for the Symbiotic Security blog.

Summary

AI app builders let anyone ship a working product in an afternoon. We wanted to know what that speed costs in security, so we scanned apps built with tools like Lovable, v0, Bolt.new, Replit and Windsurf that use a Supabase backend. Of 1,072 fully scanned applications, 98 percent had at least one security flaw. The recurring cause is a database left open because no Row Level Security policy was ever written.

Method

The scanner was a multi-agent system doing passive discovery and active but non-intrusive testing. It detected issues, it never exfiltrated data. Nineteen discovery sources ran in parallel, from certificate transparency logs and search engines to DNS enumeration and platform fingerprinting. We crawled 65,643 candidate URLs across 2,052 queries, then deduplicated and verified down to 1,085 confirmed sites. Ten scanner modules applied 80 security rules, and the pipeline ran continuously with a discovery cycle roughly every six minutes.

What we found

The headline numbers:

MetricValue
Apps fully scanned1,072
Apps with at least one flaw98%
Completely clean26 (2%)
Average flaws per site5.9
Total findings6,185

By severity there were 431 critical, 657 high, 1,907 medium, 2,415 low and 756 informational findings. One site alone had 30 issues, four of them critical.

The critical patterns

The worst findings all trace back to unprotected database access:

  • Delete without authentication. 172 sites let anyone remove database records.
  • Modify without authentication. 172 sites exposed writable PATCH endpoints.
  • Read without authentication. 39 sites had fully readable tables.
  • Sensitive columns exposed. 34 sites leaked emails, passwords or tokens.
  • Insert without authentication. 14 sites accepted unauthorized writes.

Tables named payments, admin_users, chat_messages and trading_user_portfolio were reachable without any authentication on multiple sites. The most common high-severity issues were the Supabase anonymous key exposed in JavaScript on 308 sites, CORS misconfiguration on 197, disabled email confirmation on 69, and exposed RPC functions on 44.

Root cause

None of this is a Supabase bug. Supabase exposes a REST API by default, and the anonymous key is meant to be public. The security model is that Row Level Security policies decide what that key can touch. When a code generator scaffolds the tables but never writes those policies, the result is a production app with real user data and no lock on the door. The default is open, and nobody closed it.

Takeaways

Generated code optimizes for a working demo, not for a threat model. The fix is boring and effective: enable Row Level Security on every table, write policies for read, insert, update and delete, and never rely on the client to enforce access. This is exactly the class of flaw our Supabase RLS scanner, vibe-scanner, was built to catch before an app ships.