Back to Blog

#SecurityCulture: Injection

In the latest video of our Security Culture series we give a 2 minute overview of Injection, which is a serious class of vulnerability that can happen in any language.

Injection happens when user inputted data is treated as part of an OS command or part of a query - usually through string concatenation.

As developers, we need to apply appropriate controls. Strict input validation is always recommended but in addition, we need to do one or more of the following to prevent injection in various parts of our apps:

  • parameterize queries
  • decouple user input from real file system paths
  • use shell encoding

 

injection resources

Injection resources include:

  1. The OWASP Top 10 (#1 is Injection)
  2. sqlmap
  3. metasploit
  4. parameterize query
  5. testing for command injection