Lovable apps are typically React on Supabase, which means row level security is the only thing between the browser and every table. Test by reading each table with the anon key from the shipped bundle, because a table created during a prompt often has no policy at all.
Where this class of bug actually lives in a Lovable app
- Tables without RLS. RLS is off by default. Every table added in a later prompt is a new table with no policy.
- The anon key doing the work. It is in the bundle by design, so any missing policy is a public API.
- Public storage buckets. A bucket created for avatars or uploads serves every file to anyone with the path.
- Edge functions. Deployed without verifying the caller's JWT, or with the service-role key inside them and no check on who is calling.
What to try first
- Read the shipped config for
supabaseUrland the anon key, then query/rest/v1/for the table list. - Select from every table anonymously, then as a freshly created user.
- List storage buckets and try a known object path.
- Call each edge function with no
Authorizationheader.
A reproduction you can keep
Two reads: anonymous, then as a brand-new account. Most leaks appear in the second:
for t in profiles invoices projects messages api_keys; do
echo "== $t"
curl -sS "https://<project>.supabase.co/rest/v1/$t?select=*&limit=3" \
-H 'apikey: <anon-key>' -H 'Authorization: Bearer <anon-key>'
done
# vulnerable: rows for any of these, especially as anon
# fixed: [] on every table, and the same query as a signed-in user
# returns only that user's rowsWhat "fixed" has to look like
Enable RLS on every table and write policies against auth.uid() plus the tenant column, so the anon key returns nothing and a user sees only their rows. Verify with the loop above signed out and signed in, and confirm storage buckets are private.
Where people get this wrong
- A prompt like "let users see their own orders" does not reliably produce a policy. Check the table, not the chat log.
- The service-role key inside an edge function bypasses RLS — the function must check the caller itself.
- Public buckets are independent of table policies. Both need checking.
What Offense does here
Offense runs an agent swarm against your app in a disposable sandbox, keeps the request, the identity and the vulnerable response as evidence, and replays the same attack after the fix so the retest is a control comparison rather than a green check. It does not read your source and it does not patch your code: the finding goes to your coding agent with the reproduction attached. The hosted workspace is invite-only — join the waitlist — and the free dependency audit in /install needs no account.
Questions this page answers
Are Lovable apps secure by default?
Authentication usually works. Authorization depends on RLS policies that frequently do not exist for tables added later.
What is the fastest check on a Lovable app?
Read each table with the anon key from the bundle. Anything that returns rows without a session is public.
Written by Offense Research, reviewed December 2, 2026. Correct something? Email imran@offenseresearch.com.