← Quiz: SQL Injection: all 10 questions
Quiz: SQL Injection · Question 6 of 10
What is the root cause of SQL injection?
What is the root cause of SQL injection?
- A.Using a slow database
- B.Building a query by joining user input into the SQL text, so input can change the query's structure
- C.Not using HTTPS
- D.Storing passwords in plain text
Answer & explanation
Correct answer: Building a query by joining user input into the SQL text, so input can change the query's structure
Parameterised queries keep data separate from code.
Can you get the rest right without peeking?
Take the timed Quiz: SQL Injection quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →