critical
Invoices readable across tenants
RLS-004SELECT policy trusts a client-provided workspace_id instead of the authenticated membership.
public.invoicesAuthorization boundaries across your Supabase database, API routes, and storage.
The tenant boundary is sound in 18 of 21 checks. Fix the invoice policy first—it is directly exploitable with an authenticated account.
Ordered by exploitability and potential impact.
RLS-004SELECT policy trusts a client-provided workspace_id instead of the authenticated membership.
public.invoicesKEY-002A privileged key is initialized in a module imported by the client bundle.
app/api/export/route.tsSTO-007Authenticated users can overwrite objects when they know the storage path.
tenant-documents