<?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 'URlScan SQL Injection'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=URlScan+SQL+Injection&amp;orTags=0</link><description>Search results matching tag 'URlScan SQL Injection'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>What to do for a rootkit...</title><link>http://forums.iis.net/p/1158419/1906905.aspx#1906905</link><pubDate>Sun, 14 Jun 2009 13:01:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906905</guid><dc:creator>rgsnowman</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;I have recently found a rootkit on my computer through AVG and am wondering how to get this thing off. I tried to get AVG to delete it but it said it cannot. I heard you can re-install windows vista and also restore default settings but I am not sure if that deletes everything and I&amp;#39;ll have to get external hd and if the rootkit would get itself into there and I&amp;#39;d be re-installing a rootkit. This rootkit is screwing up my xps one it tiny ways, it changed all my security setting and turned my anti-viruses off and I can&amp;#39;t turn them back on, messed up background, screwed up start menu and toolbar, and the side panel. I just want to know the best way to get this off computer. Thanks in advance.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>URLScan Recycle</title><link>http://forums.iis.net/p/1151554/1878569.aspx#1878569</link><pubDate>Fri, 05 Sep 2008 18:24:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878569</guid><dc:creator>jeremyn11</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;In our URLScan logs we get the following quite a bit&lt;/p&gt;
&lt;p&gt;- - - - - - - - - - - - - - - - - - - - - - - - &lt;/p&gt;
&lt;p&gt;#Software: Microsoft UrlScan 3.0&lt;/p&gt;
&lt;p&gt;#Version: 1.0&lt;/p&gt;
&lt;p&gt;#Date: 2008-09-04 01:01:20&lt;/p&gt;
&lt;p&gt;- - - - - - - - - - - - - - - - - - - - - - - - &lt;/p&gt;
&lt;p&gt;Does anyone know if this means that UrlScan is recycling and we have a
period of time where something like an SQL injection (if you setup the filters of course) can get through? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Respectfully,&lt;/p&gt;&lt;p&gt;&amp;nbsp;-Jeremy &lt;br /&gt;&lt;/p&gt;</description></item><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 rtw [AlwaysAllowedUrls] not working? Wildcard/regex in [AlwaysAllowedQueryStrings]</title><link>http://forums.iis.net/p/1151328/1877873.aspx#1877873</link><pubDate>Thu, 28 Aug 2008 15:46:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877873</guid><dc:creator>ytkaczyk</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi Zhao,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you for your reply. I now understand how [AlwaysAllowedUrls] works and where the query string check is still performed on the allowed Urls. &lt;/p&gt;&lt;p&gt;To clarify, here is what I would like to achieve. For instance, I would like the following &amp;#39;url+query string&amp;#39; to be valid:&lt;/p&gt;&lt;p&gt;&lt;b&gt;http://www.domain.com/search.aspx?keyword=declare(exec(...))&lt;/b&gt;&lt;/p&gt;&lt;p&gt;with proper escaping of course. I initially added the following to the urlscan.ini &lt;/p&gt;&lt;p&gt;&lt;b&gt;[AlwaysAllowedUrls]&lt;br /&gt;&lt;b&gt;/&lt;/b&gt;&lt;/b&gt;&lt;b&gt;search.aspx&lt;/b&gt;&lt;/p&gt;&lt;p&gt;but as you explained this should not and did not work. Looking at the documentation and from my experimentation, there is no way to introduce any wildcard in the [AlwaysAllowedQueryStrings] section which is what I would need here. Ideally, I would like to be able to define something like (if regex if possible):&lt;/p&gt;&lt;p&gt;&lt;b&gt;[AlwaysAllowedQueryStrings]&lt;br /&gt;keyword=.*&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Is this possible? This would be very useful for implementing the Sql Injection custom rules. &lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Yves &lt;br /&gt;&lt;/p&gt;</description></item><item><title>urlScan 3.0 rtw [AlwaysAllowedUrls] not working?</title><link>http://forums.iis.net/p/1151328/1877603.aspx#1877603</link><pubDate>Mon, 25 Aug 2008 18:30:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877603</guid><dc:creator>ytkaczyk</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&lt;span class="comment_content"&gt;I would like to allow a search page to
accept all text in the query string. To do this I added the result page
to the [AlwaysAllowedUrls]. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="comment_content"&gt;One thing that is ambiguous from the
documentation is if the [AlwaysAllowedUrls] settings also bypasses the
custom rules and if the pages listed in [AlwaysAllowedUrls] can have
any query string values. It does not seem to be the case but I thought
I would check. Could anybody shed any light on this? &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="comment_content"&gt; Thank you.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="comment_content"&gt;Yves &lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Requests to / and /default.aspx with URLScan 3.0 rtw handled differently</title><link>http://forums.iis.net/p/1151270/1877601.aspx#1877601</link><pubDate>Mon, 25 Aug 2008 18:27:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877601</guid><dc:creator>ytkaczyk</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;You need to capture the &amp;#39;extensionless&amp;#39; requests by adding the . extension to the ApplliesTo section:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;[SQL Injection Raw]&lt;br /&gt;AppliesTo=.asp,.aspx&lt;b&gt;,.&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;Yves &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></channel></rss>