Select the product you need help with
The Microsoft Source Code Analyzer for SQL Injection tool is available to find SQL injection vulnerabilities in ASP codeArticle ID: 954476 - View products that this article applies to. On This PageINTRODUCTION
This article describes the Microsoft Source Code Analyzer for SQL Injection tool. You can use this static code analysis tool to find SQL injection vulnerabilities in ASP code. MORE INFORMATION
The Microsoft Source Code Analyzer for SQL Injection tool is a static code analysis tool that helps you find SQL injection vulnerabilities in Active Server Pages (ASP) code. This article describes how to use the tool, the warnings that are generated by the tool, and the limitations of the tool. See the tool Readme document for more information.
PrerequisitesThis command-line tool requires the following software:
SQL injection issues in ASP codeIf user-supplied data from the Request.Form or Request.Querystring collections in ASP code is used to construct dynamic SQL statements without any data validation, an attacker can inject SQL commands into an SQL statement and then misuse it. This is generally known as a First Order SQL injection vulnerability.If user input is stored in a database by using one ASP page, and then the user input is retrieved from the database and is used to construct dynamic SQL statements in a different ASP page, an attacker can inject SQL commands into an SQL statement and then misuse it. This is generally known as a Second Order SQL injection vulnerability. To reduce these vulnerabilities, it is best to use parameterized SQL queries. For more information about SQL injection vulnerabilities in ASP and about methods to reduce these vulnerabilities, visit the following Microsoft Web site: http://msdn.microsoft.com/en-us/library/cc676512.aspx
The Microsoft Source Code Analyzer for SQL Injection tool helps you find some of these issues automatically.
(http://msdn.microsoft.com/en-us/library/cc676512.aspx)
UsageThis section describes how to use the tool.SyntaxThe tool uses the following syntax:msscasi_asp.exe [/nologo] [/quiet] [/suppress=num;..;num] [/GlobalAsaPath=path] [/IncludePaths=path;..;path] /Input=file.asp DescriptionThe tool analyzes ASP code for SQL injection vulnerabilities.Parameter listCollapse this table
ExamplesReviewing the outputThe tool generates the following warnings:Collapse this table
http://msdn.microsoft.com/en-us/library/cc676512.aspx
(http://msdn.microsoft.com/en-us/library/cc676512.aspx)
LimitationsThe tool has the following known limitations:
REFERENCES
To download the Microsoft Source Code Analyzer for SQL Injection tool, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyId=58A7C46E-A599-4FCB-9AB4-A4334146B6BA
For more information about various best practices documentation, visit the following Microsoft Web site:
(http://www.microsoft.com/downloads/details.aspx?FamilyId=58A7C46E-A599-4FCB-9AB4-A4334146B6BA)
http://blogs.technet.com/swi/archive/2008/05/29/sql-injection-attack.aspx
For more information about preventing SQL injections in ASP, visit the following Microsoft Web site:
(http://blogs.technet.com/swi/archive/2008/05/29/sql-injection-attack.aspx)
http://msdn.microsoft.com/en-us/library/cc676512.aspx
For more information about SQL injection attacks, visit the following Microsoft Web site:
(http://msdn.microsoft.com/en-us/library/cc676512.aspx)
http://blogs.msdn.com/sdl/archive/2008/05/15/giving-sql-injection-the-respect-it-deserves.aspx
For more information about the tool, visit the following Microsoft Web site:
(http://blogs.msdn.com/sdl/archive/2008/05/15/giving-sql-injection-the-respect-it-deserves.aspx)
http://blogs.msdn.com/sqlsecurity
Visit the following Microsoft Web site to discuss the tool in the MSDN SQL Security forum:
(http://blogs.msdn.com/sqlsecurity)
http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=92&SiteID=1
(http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=92&SiteID=1)
PropertiesArticle ID: 954476 - Last Review: June 24, 2008 - Revision: 1.0
| Article Translations
|


Back to the top








