SQL 인젝션
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Last updated
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Last updated
String query = "SELECT * FROM users WHERE username = '" + username + "' AND password = '" + password + "'";
jdbcTemplate.execute(query);String query = "SELECT * FROM users WHERE username = ? AND password = ?";
jdbcTemplate.update(query, username, password);