Supabase security and Row Level Security for vibe-coded apps

Can user B see user A's data?

Rowok is a security check for vibe-coded Supabase apps. It signs in as two test users and tries to read, change, and delete each other's rows. That is the Row Level Security (RLS) failure a public URL never shows. You get a plain-English report and a fix you can paste into Lovable or Cursor. Then we scan again to prove it's fixed.

Most scanners only ask what an anonymous visitor can see. With the anon key and no session, auth.uid() is null, so an owner-only RLS policy returns nothing and the app looks closed. The leak that hits Lovable, Bolt, Cursor, Replit, and v0 apps on Supabase or Firebase is the one between two logged-in users.

How a check runs

01

Teaser, in public

Paste a URL. We fetch the page, same-origin scripts, and a few public files. Headers, TLS, and leaked keys. No login and no database.

02

Prove it's yours

A DNS TXT record or a file at /.well-known/rowok-verify.txt. Active probes stay off until that token is published.

03

Two users

We sign in as A and B, create marker rows, and try to read, update, and delete across the pair. Only those rows are touched.

04

Paste the fix, re-scan

Each finding includes a prompt for Lovable or Cursor. Re-scan and the report shows what closed and what is still open.

What the full check covers

Pricing

Watch is cheaper than a single Launch Check. If you will ship more than once, the subscription is the one to take.

Teaser

$0

  • Headers, TLS, secrets
  • No ownership file
  • No database probe
Start free

Watch

$19/mo

  • One app
  • Re-scans on demand (up to 30)
  • You run them when you want
Start Watch

Agency

$99/mo

  • Up to 10 apps
  • Re-scans on demand (up to 30)
  • Markdown you can hand over
Start Agency

Prices are without VAT. TVA non applicable, art. 293 B du CGI.

Agency white-label PDF is not in this version — print the report or download Markdown.

Supabase RLS guides

The security checks behind the two-user matrix, written so you can run them yourself.

A report, not a pile of CVEs

Sample, before the fix

F

  • Supabase service_role key in the client bundle
  • User B can read, update, and delete User A's notes
  • Anonymous client can read notes
  • Firebase rules allow a public read
Open the sample re-scan

The sample shows a re-scan after the cross-user leak and the leaked keys are gone, with the grade moving from F toward something you can ship. It is illustrative data, not a customer.

The two-user RLS guide is the same check, written as SQL and a short script, if you want to run it before you paste a URL.

Questions

Do you delete my data?

No. Updates and deletes run only against marker rows the test users just created. Existing rows are left in place. We store counts, column names, and status codes, not row contents.

Can you scan a site I do not control?

The teaser only fetches public URLs after you confirm you are allowed to. Database and login checks require a token published on that host, and they are refused otherwise.

Is this a penetration test?

No. It is a point-in-time check aimed at the mistakes vibe-coded Supabase and Firebase apps actually ship with. It is not a certification.

What if signup is closed?

Supply two test accounts. Passwords are used for that request and are not written to the database.

How do I test Supabase RLS?

Create two users. Sign in as the first with the anon key, insert a marker row, then sign in as the second and select, update, and delete that row by id. An empty result means the policy held. A returned row means user B can see user A's data. Opening the app logged out only uses the anon role, where auth.uid() is null, so it does not answer the question.

Is the Supabase anon key safe to expose?

The anon key, and the newer publishable key that starts with sb_publishable_, is meant to be in the browser. It does not bypass Row Level Security. It is only safe when RLS is on for every table that holds user data and the policies check the owner. The service_role key, and any key that starts with sb_secret_, bypasses RLS. Those stay in server environment variables, never in a VITE_ or NEXT_PUBLIC_ name.

Why does RLS look fine when I am logged out?

A policy of auth.uid() = user_id is false for a request with no session, because auth.uid() is null. The page comes back empty and looks locked. That is the anonymous view. User B, signed in, is a different Postgres role. If the policy is USING (true), or it only checks that someone is logged in, B can read A's rows while a logged-out visit still looks safe.

What should a Supabase INSERT policy check?

WITH CHECK (true), and WITH CHECK (auth.uid() is not null), let a signed-in user write a row whose user_id belongs to someone else. The insert check should be auth.uid() = user_id. An update policy needs both USING and WITH CHECK, so a user cannot take a row they can see and assign it to someone else. Permissive policies are OR'd together, so one open policy undoes a strict one.