Multiple choice technology testing

Select the correct script for testing SQL injection threat (Select more than one)

  1. CUST001' AND ‘1’=’1

  2. CUST1001' DROP TABLE OrderDetail --

  3. CUST1001’ OR 1 = 1--

  4. All the above

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

Option B attempts to drop a table using SQL injection. Option C uses 'OR 1=1--' to bypass authentication. Option A has mismatched quotes and won't work as written. 'All the above' (D) is incorrect since A is flawed.