PeekLok

Lovable: One customer can see another’s data

This is the most serious leak: a signed-in customer changes an ID in a link or request and sees someone else’s order, invoice or messages. Security people call it broken object level authorization.

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

Why it matters for your Lovable app

Lovable apps usually use Supabase for the database and login. Lovable has a built-in security scan, but it can’t sign in as two real users and compare what each one sees.

Every customer’s private data can be walked through one ID at a time, by anyone with a free account.

How to check in five minutes

  1. Make two test accounts, A and B, and create some data in each.
  2. Signed in as A, copy the link to one of A’s records, and change the ID to one of B’s.
  3. If A can see B’s record, you have this leak.

What PeekLok’s scan checks

If your app uses Supabase login, PeekLok’s free scan can run this test for one table. Give it two test logins and it checks whether either user can read the other’s row. It doesn’t cover other login systems or every table.

Fix prompt to paste into the Lovable chat

Make sure every query and route that loads a record checks that it belongs to the signed-in user. Use the user ID from the verified session, and add database rules (RLS) so this holds even if the code forgets. Then test it: as user A, request user B’s record by ID and confirm it is refused. (This is a Lovable app using Supabase. Keep secrets in Supabase Edge Function secrets.)

After the AI makes changes, test again with two accounts. AI fixes can look right and still miss a table or route.

Sources

Related

Same issue in other builders:

All Lovable security guides · One customer can see another’s data explained

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