Injection attacks refer to a broad class of attack vectors. In an injection attack, an attacker supplies untrusted input to a program. This input gets processed by an interpreter as part of a command or query. In turn, this alters the execution of that program.
In this section, we'll describe some general principles for preventing cross-site scripting vulnerabilities and ways of using various common technologies