Supabase Postgres (PostgreSQL RLS) · CWE-89
Supabase Postgres: SQL & ORM Query Injection (DAST & CI Regression Guard)
Automate ZAP staging probes and Semgrep PR gates. Stop concatenated user input from altering SQL predicates, sort keys, or raw query calls. Tailored for Supabase Postgres: Enable ROW LEVEL SECURITY on all tables and match USING + WITH CHECK to auth.uid().
Coverage ledger tracking key
surface:supabase-postgres::boundary:sql-injection::angle:dast-ci
ZAP 40018 SQL Injection safe staging policy
Risk boundary
// Unverified Supabase Postgres path (CWE-89 · DAST & CI Regression Guard)
// Handler accepts input without validating auth.uid().Hardened guard
// Hardened Supabase Postgres (CWE-89 · DAST & CI Regression Guard)
// 1. Enable ROW LEVEL SECURITY on all tables and match USING + WITH CHECK to auth.uid()
// 2. Use parameterized bindings everywhere and strict allowlists for dynamic column names.Verification steps
- 01Seed coverage-ledger.json for every Supabase Postgres handler touching SQL & ORM Query Injection.
- 02Trace request parameters through auth.uid() validation down to the sink.
- 03Verify with paired positive/negative evidence via zap-active-daemon-triage.