Caffeinated Coder
Book an appointment
Lesson 48 · Building systems

Secure coding: the common mistakes and their fixes

Most security holes in web apps come from a handful of well-known mistakes. Follow one request through a server with checkpoints: validate the input, check access on every request, keep SQL and data apart with parameterised queries, escape what you send back and add a Content-Security-Policy, keep secrets out of the code, keep libraries up to date, and give every account the least privilege it needs. Each mistake sits beside its fix.

14 min11 steps5 questionsAdvanced
Fig 48 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.