I'd like to check my input string for potential SQL-Injection.
Here is my class, method and query:
public class UserNamesQuery {
public static String getUserNames(Map<String, Object> params) {
String userNames = (String) params.get("userNames");
return "SELECT * FROM users WHERE name IN (" + userNames + ") ";
}
}
Is there a tool or a quick way to validate that userNames
is without SQL-Injection?
Notice that I use Mybatis