Does your app decide who's an admin from user_metadata?
Free scan: check my app Just your web address. Results in seconds. No signup, no card.
If your Lovable, Bolt or v0 app uses Supabase Auth, each user has a user_metadata field. It's handy for names and avatars, but Supabase's docs warn that users can change it themselves, with no validation.
So a security rule that checks user_metadata for something like is_admin can be beaten: a signed-in user can call updateUser and set is_admin to true.
Quick check: in your Supabase dashboard, open the Security Advisor. A finding called "Security policy relies on user-editable data" means a policy uses user_metadata. You can also search your policies for user_metadata.
If you find one, ask your builder to keep roles somewhere users can't edit, such as a separate roles table protected by RLS.
Want a free check of your live app? https://peeklok.com
Chris, PeekLok
