AI-Built Lovable Apps May Expose User Data Due to Missing Database Security
Most apps built with Lovable, an AI-powered app builder, connect browsers directly to Supabase's REST API using a publicly visible anonymous key, bypassing any login-based protection. The critical safeguard determining whether this API exposes all database records to anyone is Row Level Security (RLS), a PostgreSQL feature that Supabase supports but which AI-generated apps frequently leave disabled. Without RLS policies in place, anyone with the public API key can query and retrieve entire database tables, including names, emails, and other personal data, while the app appears to function normally. Security researchers note that RLS is often never enabled during development, or is accidentally set to allow all access during debugging and never corrected. Under GDPR Articles 32 and 33, exposing personal data this way could constitute a reportable breach, though the issue can be remediated by enabling RLS and writing restrictive access policies directly in the Supabase dashboard.
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