SQL Injection information for IIS admins and developers

The sql injection that has came up is affecting several ASP and ASP.NET applications.  Although the only way to prevent an attack is validate the code, hopefully these posts will provide some direction.  I included some links that discuss this more. 

Here’s a list of additional reading:

Building Secure ASP.NET Applications – Authentication, Authorization, and Secure Communication.

Improving Web Application Security – Threats and Countermeasures

This link talks about the issue in ASP/NET perspective:SQL Injection Attacks:

Sample code provided by Microsoft to validate SQL statements.

Log parser examples

http://youtube.com (search for sql injections)  This will show several videos posted on how people are doing this.

To do a quick find type from a command prompt

findstr “CAST(” ex080622.log > ss.txt   (change the log file date)

Note the ‘CAST’ is case senstative

Hope this helps,

Steve Schofield

3 thoughts on “SQL Injection information for IIS admins and developers”

  1. Steve,

    First off, thanks the links are useful.

    Theoretically, are there any means to ensure whatever the team does, does not leave any room for SQL Injection attacks?


  2. Hi Steven,

    In theory, once you plug a box on the internet, it’s not secure, not matter what you do. All you can do is do the best you can and follow best security practices. Validating request variables and not trusting user input is probably the one thing that will help the most. It might cause some issues with your application, but if it’s done with security in mind, it should be sufficient of a reason.

    Good luck,



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: