PeekLok

Supabase RLS turned off

Row Level Security (RLS) is the rule that says “each user can only see their own rows.” If it is off on a table, anyone holding your public key, which every visitor has, can read the whole table.

Free scan: check my app Just your web address. Results in seconds. No signup, no card.

What can go wrong

Customer names, emails, orders or messages can be downloaded by a stranger in one request. This is exactly the problem reported in CVE-2025-48757, where a researcher found 170 of 1,645 Lovable-built apps exposing data.

How to check

  1. Open your Supabase dashboard and go to Table Editor.
  2. Look for any table marked “RLS disabled” or “Unrestricted”.
  3. For each table, check there is a policy that limits rows to the signed-in user (for example user_id = auth.uid()).

What PeekLok’s scan checks

If your app uses Supabase and its public anon key is in your page code, PeekLok’s scan tries to read each table with that key and tells you which ones return data. It can’t see your policies, so a table that returns nothing may still be too open to signed-in users. The optional two-user test checks that for one table.

General fix prompt

Turn on Row Level Security for every table in my Supabase database. For each table that holds user data, add policies so a signed-in user can only select, insert, update and delete rows where user_id equals auth.uid(). Do not use “true” as a policy. List every table and policy you changed.

Builder-specific guides

Also check: Does Supabase RLS apply to views? · Can strangers sign up to my app?

Sources

Get a free scan

PeekLok checks your live app for secret keys in the page code, a Supabase service or anon key showing, Supabase tables anyone can read with the public key, and five browser security headers. If your app uses Supabase login, you can add two test logins and it checks whether one user can see the other’s data. Only scan apps you own. First scan free. Weekly re-checks will be $12 US a month once payments open.

Start my free scan