Supabase RLS Row Policies Don't Restrict Columns, Risking Self-Promoted Admin Roles
The article warns that Supabase Row Level Security policies govern which rows a user can update, not which columns, so a role or is_admin column on a profiles table can be altered by users. If a user can update their own row, they could grant themselves elevated privileges directly from the browser using the public key. The author recommends restricting updates to safe columns or storing roles where users cannot write to them. The piece also promotes a SniffPup service for scanning apps for similar security gaps.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in