K
Kevin Hill
I am seeing log entries that have SQL statements embedded in the actual
forms.
forms.
-----Original Message-----
It is a old hack... E.g.
Let us say you have a "dynamic SQL" which goes something like
formID = Request.Form("ID")
sSQL = "SELECT * from myTable WHERE Id=" & formID
conn.Execute(sSQL)
Just imagine someone enters this: "5; DELETE FROM myTable"
the final SQL will be
SELECT * from myTable WHERE Id=5; DELETE FROM myTable
which is a valid SQL statement. The user should still need to know the table
names, but it is possible that the hacker might be able to delete system
tables.
To get around this, use stored procedures when possible, with parameters. At
the least, validate the input. Hope that helps.
--
Manohar Kamath
Editor, .netBooks
www.dotnetbooks.com
.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.