Thread: SQL Injections - How to test for it?
-
Jun 23rd, 2008 09:58 AM
#1
SQL Injections - How to test for it?
This is an unusual request.
I need to do some security testing, and part of it deals with SQL Injections. Can someone suggest ways to test for this, or if there are applications that can do this for you and spit out a report?
Thanks.
-
-
Jun 23rd, 2008 10:11 AM
#2

Originally Posted by
hightech
This is an unusual request.
I need to do some security testing, and part of it deals with SQL Injections. Can someone suggest ways to test for this, or if there are applications that can do this for you and spit out a report?
Thanks.
Lot of Google resources out there...
Here is one: http://www.owasp.org/index.php/Testi..._SQL_Injection

From one of the resources found in the link above:
There are two complementary and successful methods of mitigating SQL Injection attacks:
* Parameterized queries using bound, typed parameters
* Careful use of parameterized stored procedures.
I've always used the first one. Haven't created many stored procedures so can't comment on the second point.
http://www.owasp.org/index.php/Avoiding_SQL_Injection
-
Jun 25th, 2008 02:53 PM
#3
If you want long enough, someone will be kind enough to test it for you
We got hit hard a month or so ago. Damn lazy coding (and security "expert" who took 4 days to do a damn thing about it).
And honestly, it doesn't matter if you're using SPs, if they're not paramaterized in your code. Can still break out of your SP, and run the injected script.
Last edited by Flux; Jun 25th, 2008 at 02:58 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules