OWASP Top 10: Injection Attacks
Learn how text from a visitor ends up being run as a command by a shell, a mail system or a database, why one habit of keeping data apart from commands fixes all three, and what to check in a review, followed through one sheepdog trial website, with the 2025 position noted.
- Intermediate level
- 3 modules
- 6 lessons
- 30 quiz questions
Syllabus
01When Text Becomes a CommandSee how a search box that builds a shell command lets a visitor run commands of their own, then fix it by not using the shell, passing arguments as a list, and allowing only the text the feature needs.2 lessons
02Newlines in Email HeadersLearn how a contact form that builds an email from text lets a visitor add recipients and rewrite the message, then use the standard library's message object, fixed topics and a strict address check to stop it.2 lessons
03Queries and LayersSee the same flaw in a database lookup and fix it with bound values and a fixed list of sort columns, then pull the three fixes together into one set of rules, a few safety nets and a short review checklist.2 lessons