Two usersWeb Security, day by day · Day 2
Build a search feature for a petal catalog
Without the course
“Write SQL to search petals by name and color”
AI inserts search text directly into SQL, allowing injection
After this course
“Write SQL with bound parameters for petal name and color, and allowlist for table/column names”
AI uses parameterized queries and validates identifiers
Always bind values and allowlist dynamic identifiers to block injection