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.