Skip to content
Sharp

Authentication · interview question

Which OWASP vulnerability does using prepared statements help mitigate?

Multiple choiceMediumchapter-17-curatedpremiumauthenticationsalting-and-bcrypt
Choose one answer
Answer and explanation

Correct answer

C. SQL Injection

Why

Prepared statements help mitigate SQL Injection attacks by separating SQL logic from data input. This prevents attackers from injecting malicious SQL code through user inputs, ensuring that data inputs are treated strictly as data.

Test yourself on Authentication

A free test with instant, explained results. No account needed.

Start free test
All Authentication questions →