diff --git a/skills/security-review/SKILL.md b/skills/security-review/SKILL.md index 0846d70a1..3f26b0df6 100644 --- a/skills/security-review/SKILL.md +++ b/skills/security-review/SKILL.md @@ -124,13 +124,20 @@ const { data } = await supabase .select('*') .eq('email', userEmail) -// Or with raw SQL +// Or with raw SQL -- the value goes in the params array, never in the +// string. Use your driver's placeholder syntax (Postgres numbers its +// placeholders, MySQL uses "?"). await db.query( - 'SELECT * FROM users WHERE email = $1', + 'SELECT * FROM users WHERE email = ?', [userEmail] ) ``` + + #### Verification Steps - [ ] All database queries use parameterized queries - [ ] No string concatenation in SQL