Which of the following script is example of SQL injection attack?

Which of the following script is example of SQL injection attack?
A.
Code:
var Shipcity;
ShipCity = Request.form ("ShipCity");
var sql = "select * from OrdersTable where ShipCity = '" + ShipCity + "'";
B.
Code:
var Shipcity;
ShipCity = Request.form ("ShipCity");
C.
Code:
var Shipcity;
var sql = "select * from OrdersTable where ShipCity = '" + ShipCity + "'";
D. All of the mentioned
 

Tìm kiếm

Back
Top