Injections are about maliciously putting things where they’re not supposed to go. Originally, for input fields, like text boxes or forms, where someone could inject malicious code.
One of the most famous examples is from the classic XKCD comic “Exploits of a Mom”, where a child is registered at school with a name that includes a bit of code, and it accidentally causes the school’s database to break. But it's not just about forms anymore. Prompt injections are similar in nature. Anywhere a user can put stuff is prone to injection flaws.
Tip: Always validate and sanitize anything users can send.
One of the most famous examples is from the classic XKCD comic “Exploits of a Mom”, where a child is registered at school with a name that includes a bit of code, and it accidentally causes the school’s database to break. But it's not just about forms anymore. Prompt injections are similar in nature. Anywhere a user can put stuff is prone to injection flaws.
Tip: Always validate and sanitize anything users can send.