cd /news/ai-safety/we-checked-30-public-supabase-apps-b… · home › topics › ai-safety › article
[ARTICLE · art-175372] src=dev.to ↗ pub= topic=ai-safety verified=true sentiment=↓ negative

We checked 30 public Supabase apps built with AI tools. 21 had at least one high-risk hole.

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.

recommendation

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.

more in playbook: Securing agents and AI tools
by read3 min views1 publishedNov 24, 2026

In November 2026, researchers reported that more than 24,000 apps built with Lovable had a Supabase database that answered without a login (Techzine). 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, a free checker that runs entirely in your browser.

We only read code that was already public. We ran nothing, attacked nothing and contacted nobody, and no project is named here.

What we found Findings Projects
Table rule "everyone can change everything" ( using (true) on business tables) 71 9 of 30
Server function anyone can call that spends money (AI, email, SMS) 32 8
Table with no row-level security at all 28 6
Upload bucket where strangers can upload or overwrite files 18 5
View that skips the table rules 16 7
Supabase service-role key in the code 13 5
Stripe webhook that doesn't check the signature 7 3
AI key in website code or a browser variable 5 3
Live Stripe secret key in the code 2 2

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

1. using (true) is "everyone", not "the owner".

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

Fix: compare against the owner, for example using (auth.uid() = user_id). 2. "Logged in" is not "allowed".

auth.uid() is not null only proves that someone signed in. Sign-up is usually open, so that's anyone.

Fix: the same owner check as above, or a role or team check.

3. Server functions that spend your money with no login check.

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

Fix: check the user's token at the top, or require a secret header for server-to-server calls.

4. Views quietly bypass row-level security.

A Postgres view runs with its creator's rights by default, so a view over a protected table can show everything.

Fix: alter view my_view set (security_invoker = on); 5. Keys that should never leave the server.

The service-role key ignores every rule, and a live Stripe secret key can move money. Both turned up in public code.

Fix: 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.

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.

── more in #ai-safety 4 stories · sorted by recency
── more on @supabase 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/we-checked-30-public…] indexed:0 read:3min 2026-11-24 · —