![]() |
| sql injection |
|
joe
|
One thing I've noticed is nobody seems to pay attention to SQL injection. This is a serious problem that occurs when you use forms and don't run sanity checks on the users input. This could leave your customer database in the wrong hands! A simple test you could run would be to try inputting the character ' in to your form that's processed by asp. You can do this in a login field, or in a variable that's actually in the url like http://www.domain.com/test.asp?id=12'. If you receive an error message back from the sql server, you are most likely vulnerable. Take a look at this link http://www.sitepoint.com/article/sql-injection-attacks-safe.
|
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Yes... and in ASP.NET theres a very easy way to get around that... Use Parameterized Queries/Updates.
or...
or...
and the same for DELETE even. This works because SQL automatically delimits the fields as necessary, regardless of the input supplied. That right there stops the skript kiddies cold. |
||||||||||||||||||
|
|
|||||||||||||||||||
|
jamie
HostMySite Sales Rep
![]()
|
You can do something similar in CF with the CFParam? command I believe.
|
||||||||||||
|
|
|||||||||||||
|
bobclingan
Forum Regular
|
yes you are thinking of cfqueryparam
|
||||||||||||
|
|
|||||||||||||
|
loftboy
Forum Regular
|
yup cfqueryparam
gawd simplier too that looks like spagettiosssssssssssssssss |
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
what looks like spaghettioooossssssssssssssssss?
|
||||||||||||
|
|
|||||||||||||
|
loftboy
Forum Regular
|
~hey thats spagetti regetti's sister!~ (what movie is that from?)
josh whats your addy? |
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
email? josh@joshandbrandi.com
|
||||||||||||
|
|
|||||||||||||
|
loftboy
Forum Regular
|
check mail
|
||||||||||||
|
|
|||||||||||||
| sql injection |
|
||
|



