SQL - Security Basics
Consider a login system using this vulnerable query:
If an attacker inputs
SELECT * FROM users WHERE username = '" + userInput + "' AND password = '" + passInput + "';If an attacker inputs
admin' -- as username and anything as password, what happens and why?