| Hole | What goes wrong | Lovable's checks | Your test |
|---|---|---|---|
| 1. Table without RLS | Anyone with the API URL reads it | Automatic | 1 SQL query |
| 2. Rule that lets everyone in | RLS is on and still open | Automatic, common cases | Read every policy |
| 3. Editable role | A user makes themselves admin | Advanced | Edit your own profile |
| 4. Views and definer functions | They skip RLS | Not named in the docs | List views and functions |
| 5. Secret key in the browser | Full access to your data | Detects pasted keys, advanced | Search the bundle |
| 6. Edge function trusts any caller | One user reads another's rows | Advanced | 2 test accounts |
| 7. Public storage bucket | Uploaded files open to all | Not named in the docs | Open a file signed out |
| 8. Unverified payment webhook | Fake "paid" orders | Advanced | Send a fake event |
| 9. Sign-in without limits | Leaked passwords, bot sign-ups | Leaked-password setting flagged | Check auth settings |
Loading editor...
select tablename from pg_tables where schemaname = 'public' and rowsecurity = false;
Loading editor...
select tablename, policyname, cmd, qual, with_check from pg_policies where schemaname = 'public';
Loading editor...
create policy "owners read their projects" on public.projects for select using ((select auth.uid()) = owner_id);
Focus on customers and sales while AI agents and our engineers ship 5x faster