SQL built from f-strings

Lesson 8 of 27 · Injection and untrusted input · 2 min Get the course to watch

Tidepool needs a search by customer. The assistant writes it the way a lot of tutorials do, with the customer name dropped into the query text.

It works on every name you try, which is exactly why it ships. Nothing in the diff looks careless, so a reviewer reading for style will wave it through without a second thought.

The rest of this lesson

  • What the attacker types
  • Run it
  • Parameters keep data as data
  • What parameters cannot do
  • Frameworks do not make you immune
  • What to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Secure the code AI writes.