{"slug": "we-checked-30-public-supabase-apps-built-with-ai-tools-21-had-at-least-one-high", "title": "We checked 30 public Supabase apps built with AI tools. 21 had at least one high-risk hole.", "summary": "A team of researchers audited 30 public GitHub projects built with AI app builders on Supabase—covering 2,328 database tables—using a free browser-based checker called rls-check, and found 21 of the 30 had at least one high-risk security hole. The most common issues included permissive `using (true)` row-level security policies (71 findings across 9 projects), unauthenticated server functions that spend money on AI, email or SMS (32 findings in 8 projects), tables with no row-level security (28 findings in 6 projects), and exposed service-role and live Stripe secret keys. The team said it only read already-public code, ran nothing and attacked nothing, and did not name any project.", "body_md": "In November 2026, researchers reported that more than 24,000 apps built with Lovable had a Supabase database that answered without a login ([Techzine](https://www.techzine.eu/news/security/145550/thousands-of-lovable-apps-are-leaking-personal-data/)). We wanted to know what the problems actually look like in the code. So we took 30 public GitHub projects built with AI app builders that use Supabase, 2,328 database tables in total, and read their migration files and server functions with [rls-check](https://alasan-art.github.io/rls-check/), a free checker that runs entirely in your browser.\n\nWe only read code that was already public. We ran nothing, attacked nothing and contacted nobody, and no project is named here.\n\n| What we found | Findings | Projects | \n|---|---|---|\n| Table rule \"everyone can change everything\" ( `using (true)` on business tables) | 71 | 9 of 30 | \n| Server function anyone can call that spends money (AI, email, SMS) | 32 | 8 | \n| Table with no row-level security at all | 28 | 6 | \n| Upload bucket where strangers can upload or overwrite files | 18 | 5 | \n| View that skips the table rules | 16 | 7 | \n| Supabase service-role key in the code | 13 | 5 | \n| Stripe webhook that doesn't check the signature | 7 | 3 | \n| AI key in website code or a browser variable | 5 | 3 | \n| Live Stripe secret key in the code | 2 | 2 | \n\nThe medium-risk findings were often more common. The biggest was **\"only checks if someone is logged in\"** (39 findings in 8 projects): a rule like `auth.uid() is not null` looks safe, but it lets every user read every other user's data.\n\n**1. `using (true)` is \"everyone\", not \"the owner\".**\n\nAI builders often write it to make an error go away. On a table with orders, profiles or invoices, it means anyone with your public key can read or change all of them.\n\nFix: compare against the owner, for example `using (auth.uid() = user_id)`.\n\n**2. \"Logged in\" is not \"allowed\".**\n\n`auth.uid() is not null` only proves that *someone* signed in. Sign-up is usually open, so that's anyone.\n\nFix: the same owner check as above, or a role or team check.\n\n**3. Server functions that spend your money with no login check.**\n\nAn edge function that calls OpenAI, sends email or sends SMS, without checking who is calling, can be run by anyone in a loop, and you pay for it.\n\nFix: check the user's token at the top, or require a secret header for server-to-server calls.\n\n**4. Views quietly bypass row-level security.**\n\nA Postgres view runs with its creator's rights by default, so a view over a protected table can show everything.\n\nFix: `alter view my_view set (security_invoker = on);`\n\n**5. Keys that should never leave the server.**\n\nThe service-role key ignores every rule, and a live Stripe secret key can move money. Both turned up in public code.\n\nFix: rotate the key now (deleting it from the code isn't enough, because it stays in git history), then keep it in server-side secrets only.\n\n[rls-check](https://alasan-art.github.io/rls-check/) is free and open source. Drag in your project folder: it runs in your browser, sends nothing anywhere and needs no sign-up. There's also an example project, so you can see what a result looks like first.", "url": "https://wpnews.pro/news/we-checked-30-public-supabase-apps-built-with-ai-tools-21-had-at-least-one-high", "canonical_source": "https://dev.to/alasanart/we-checked-30-public-supabase-apps-built-with-ai-tools-21-had-at-least-one-high-risk-hole-mc1", "published_at": "2026-11-24 12:08:24+00:00", "updated_at": "2026-11-24 12:13:24.057001+00:00", "lang": "en", "topics": ["ai-safety", "ai-agents", "ai-tools", "developer-tools"], "entities": ["Supabase", "Lovable", "GitHub", "Stripe", "OpenAI", "rls-check"], "also_reported_by": [], "takeaway": "Across 30 AI-built Supabase projects, 21 had at least one high-risk flaw, with `using (true)` policies (71 findings) and unauthenticated money-spending edge functions (32) the most common—so replace `using (true)` and `auth.uid() is not null` with owner checks like `auth.uid() = user_id`, and set `s", "recommendation": {"advice": "Audit AI-generated Supabase projects for `using (true)` and `auth.uid() is not null` policies, add owner checks, require auth on money-spending edge functions, and rotate any exposed service-role or Stripe keys.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/we-checked-30-public-supabase-apps-built-with-ai-tools-21-had-at-least-one-high", "markdown": "https://wpnews.pro/news/we-checked-30-public-supabase-apps-built-with-ai-tools-21-had-at-least-one-high.md", "text": "https://wpnews.pro/news/we-checked-30-public-supabase-apps-built-with-ai-tools-21-had-at-least-one-high.txt", "jsonld": "https://wpnews.pro/news/we-checked-30-public-supabase-apps-built-with-ai-tools-21-had-at-least-one-high.jsonld"}}