t2-p2-06draft3–5h

Injection protection, proven by test

requires: t2-p2-05

Audit every endpoint for SQL injection - it should already be safe via parameterised queries, so verify with a test - and sanitise user-generated content rendered elsewhere, such as comment bodies.

"We use an ORM so we're safe" is usually true and occasionally catastrophically false, at exactly the one place someone dropped to raw SQL. A test is the difference between believing and knowing.

No result yet. Run `learn verify t2-p2-06` locally, or push to trigger CI.

contractcontract: t2_p2_06_injection
unrun