🔐Injection Attack
Also known as Injection Flaw, Code Injection
Hiding commands in what a user types. The program then runs them.
Think of it like
Think of it like slipping a line into a recipe. The cook follows it as if it were part of the dish.
Example
A search box passes Emma's text straight into a database query. An attacker types a piece of SQL instead of a word, and the database runs it.
Why it matters
Injection can leak, change or wipe whole databases. It is number five on the 2025 OWASP Top 10.
Definition
Common mistake
Key takeaways
- 1Data becomes code. Input gets run as a command.
- 2Many targets. Databases, shells, pages and more.
- 3Keep them apart. Send data apart from commands.