Open RonnieHegelund opened 9 years ago
string sql = "SELECT " + selection + " FROM myTable WHERE " + where;
var cmd4 = new SqlCommand(sql);
IMO it looks more like "Sql Injection" and should be reported with severity of error. I will create another issue to create Analyzer to detect sql injection and add this issue there.
string sql = "SELECT " + selection + " FROM myTable WHERE " + where;
var cmd4 = new SqlCommand(sql);