InjectionDescription
OS Command InjectionOccurs when user input is directly used as part of an OS command.
Code InjectionOccurs when user input is directly within a function that evaluates code.
SQL InjectionsOccurs when user input is directly used as part of an SQL query.
Cross-Site Scripting/HTML InjectionOccurs when exact user input is displayed on a web page.
There are many other types of injections other than the above, like LDAP injectionNoSQL InjectionHTTP Header InjectionXPath InjectionIMAP InjectionORM Injection, and others. Whenever user input is used within a query without being properly sanitized, it may be possible to escape the boundaries of the user input string to the parent query and manipulate it to change its intended purpose.