Several communities have already started a few workarounds
on this issue. HP Web Security Research Group published a tool named HP
Scrawlr, to find out SQL Injection vulnerabilities in websites. Also,
Microsoft recently released source code analyzer for SQL Injection. But
sanitizing all the input fields is not an easy task for a large website.
SQL (structured query language) is a very powerful gun for
hackers. We know there are several built-in processes in ASP.NET to protect it
from SQL Injection and cross site scripting like ValidateRequest, "EnableEventValidation,"
etc. in page element. They inspect in every request variable for script to
prevent attack in application. These features can be set from web.config which
will work for every page centrally or can be set in individual pages from page
element tag. We have to build similar functionality in classic ASP, so we will
do it similarly to the ways ASP.NET protects the application from SQL Injection.
Normally, hackers target the "information collection form" like the registration
form, subscription form, login form, etc. Searching this type of form is not a
hard task since hackers used a very smart crawler program. In the rest of the
article, we will build a ValidateRequest system which can inspect all request
variables centrally application-wise as well as page-wise like the built-in
system in ASP.NET.