An attacker types SQL code into a login form to bypass authentication. What is the best primary defence?
Correct answer
D. Parameterised queries (prepared statements)
10 views
D. Parameterised queries (prepared statements)
10 views
Parameterised queries keep user input separate from SQL code, so input cannot change the query's logic. Hiding errors and lockouts may help a little but do not fix SQL injection.
Asked in: CISSP, Security+, NTS
Not sure why the answer is D? Ask here and get an explanation.