I have a jsp code which has a query like
'select * from MyTable where
Column1='+request.getParameter('q'),
which is executed from a
java.sql.Statement. Now, provided we can append the query by using the
request parameter, my target is to change the query to something like:
Select * from MyTable where Column1 = a; Delete from MyTable;
since the original select query is executed through java.sql.Statement,
how can we do such sql injection ? If the question is not clear, kindly
comment, I'll try to provide further explanations.