This SQL code is designed to pull up the records of the specified
username from its table of users. However, if the "userName" variable is
crafted in a specific way by a malicious user, the SQL statement may do
more than the code author intended. For example, setting the "userName"
variable as:
' or '1'='1
No comments:
Post a Comment