Nothing told you: a broken Supabase RLS policy has no error
Автор: RowAttest
Загружено: 2026-11-06
Просмотров: 9
Описание:
A broken RLS policy never throws an error. No log line, no failed test. Your app works perfectly for you, and it works perfectly for anyone reading someone else's rows.
The example: RLS enabled on public.notes, with a select policy of using (true) for authenticated. The dashboard shows a green badge. Every signed-in user can read every row.
The two-minute check, on a staging project in the SQL editor:
begin;
set local role authenticated;
set local request.jwt.claims = '{"sub":"USER_B_ID"}';
select count(*) from public.notes where user_id = 'USER_A_ID';
-- expect: 0
rollback;
Anything above 0 means user B can read user A's data.
Why this matters: Lovable's own security check verified that policies existed, not whether they blocked anyone, and 303 endpoints across 170 projects were exposed (CVE-2025-48757). Source: https://www.superblocks.com/blog/lovable-v...
RowAttest runs this test across every table on a staging copy of your project and signs the result: https://rowattest.com
Supabase docs on RLS: https://supabase.com/docs/guides/database/...
Free two-minute RLS self-check: rowattest.com/self-check
Follow for one RLS lesson a day. Also on TikTok @rowattest and X @royawilliamsjr.
#supabase #postgres #rls
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: