SQL injection is an attack where an application takes an untrusted user input and concatenates it with predefined SQL query.