API Testing · Middle · Question 24 of 75

Which test input checks for SQL injection in a search parameter?

Show the answer

Correct answer: ' OR 1=1 -- and checking results and errors

Explanation

If the response changes oddly or shows a database error, input may reach SQL unescaped. Parameterized queries prevent it.

Further reading

Problem with a question

API Testing · Middle · question 24

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz