<?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>IIS7 - Security</title><link>http://forums.iis.net/1043.aspx</link><description>Discussions around the security of IIS 7 including compentization, hidden directories, or authentication\authorization</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Request filtering fileExtensions and default document issue</title><link>http://forums.iis.net/thread/1901956.aspx</link><pubDate>Mon, 27 Apr 2009 09:03:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901956</guid><dc:creator>davide marzucco</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901956.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1901956</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s it!! You&amp;#39;re the one Lex!!! Thank you sooooooooooooo much!!&lt;/p&gt;
&lt;p&gt;I tried many other possibilities, setting &amp;quot;/&amp;quot;, or &amp;quot;&amp;quot;, but with no luck (and indeed I was trying to have luck!!)&lt;/p&gt;
&lt;p&gt;The &amp;quot;.&amp;quot; (dot) is the obvious solution, but I was not aware of that.&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m happy and feel secure!! &lt;/p&gt;
&lt;p&gt;This solution should be offered as a guide or how-to for locking down IIS with request filtering based on a need-to-have principle. I started from &lt;a href="http://learn.iis.net/page.aspx/143/how-to-use-request-filtering/"&gt;here&lt;/a&gt;&amp;nbsp;and probably this guide could include this solution!&lt;/p&gt;
&lt;p&gt;This is the Site for IIS resources!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Davide&lt;/p&gt;</description></item><item><title>Re: Request filtering fileExtensions and default document issue</title><link>http://forums.iis.net/thread/1901954.aspx</link><pubDate>Mon, 27 Apr 2009 08:50:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901954</guid><dc:creator>lextm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901954.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1901954</wfw:commentRss><description>&lt;p&gt;Hi Davide,&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t be upset. I just noticed that there is a way to allow &amp;quot;/&amp;quot;. This requires you to add an extra Allow rule.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;Click &amp;quot;Allow File Name Extension...&amp;quot;&lt;/p&gt;
&lt;p&gt;2. Type &amp;quot;.&amp;quot; (a dot)&amp;nbsp;in the dialog and click OK.&lt;/p&gt;
&lt;p&gt;Then you can access &lt;a href="http://localhost/"&gt;http://localhost/&lt;/a&gt; to test if it works also on your box.&lt;/p&gt;
&lt;p&gt;In this way, other unknown extensions are still being blocked.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Re: Request filtering fileExtensions and default document issue</title><link>http://forums.iis.net/thread/1901953.aspx</link><pubDate>Mon, 27 Apr 2009 07:46:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901953</guid><dc:creator>davide marzucco</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901953.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1901953</wfw:commentRss><description>&lt;p&gt;Hi Lex, thank you again for your reply. I was afraid of this conclusion. We can&amp;#39;t get the server secure and user-friendly at the same time! What&amp;#39;s your opinion on having a company site unreachable at &lt;a href="http://www.company.com/"&gt;www.company.com&lt;/a&gt; ? We&amp;#39;ll have to tell everybody to type &lt;a href="http://www.company.com/default.aspx"&gt;www.company.com/default.aspx&lt;/a&gt; to reach the homepage...&lt;/p&gt;
&lt;p&gt;I agree with you, enabling that feature, I asked IIS not to serve /, but I suppose that having the default document feature be overridden by the request filtering, is not so reasonable.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking further for some workaround, keeping the famous allowUnlisted=true option.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Davide&lt;/p&gt;</description></item><item><title>Re: Request filtering fileExtensions and default document issue</title><link>http://forums.iis.net/thread/1901868.aspx</link><pubDate>Sat, 25 Apr 2009 12:04:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901868</guid><dc:creator>lextm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901868.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1901868</wfw:commentRss><description>&lt;p&gt;Hi Davide,&lt;/p&gt;
&lt;p&gt;I can understand your concern about security. &lt;/p&gt;
&lt;p&gt;But if you configure allowUnlisted=false, you&amp;nbsp;are telling&amp;nbsp;IIS&amp;nbsp;to block everything unlisted. That of course includes &amp;quot;/&amp;quot; which contains no extension information at all. &lt;/p&gt;
&lt;p&gt;This behavior is reasonable IMO.&lt;/p&gt;</description></item><item><title>Re: Request filtering fileExtensions and default document issue</title><link>http://forums.iis.net/thread/1901863.aspx</link><pubDate>Sat, 25 Apr 2009 10:04:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901863</guid><dc:creator>davide marzucco</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901863.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1901863</wfw:commentRss><description>&lt;p&gt;Thank you lextm for your reply, but unfortunately I found no news on the issue. You&amp;#39;re right, surfing that URL on the local server, I can see the detailed IIS error code, which is 404.7, that is a file extension denied. But I already knew this, as I wrote, changing allowUnlisted=&amp;quot;true&amp;quot; the problem is not issued anymore.&lt;/p&gt;&lt;p&gt;The real question is: which fileExtension has to be allowed explicitly to allow the request to / resource ?&lt;/p&gt;&lt;p&gt;Only when I set no filter on the fileExtension, IIS serves the / resource, and after that, the redirection to the defaul document occurs.&lt;/p&gt;&lt;p&gt;Hope you can understand my concern.&lt;/p&gt;&lt;p&gt;Anyway, thank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Request filtering fileExtensions and default document issue</title><link>http://forums.iis.net/thread/1901845.aspx</link><pubDate>Sat, 25 Apr 2009 05:02:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901845</guid><dc:creator>lextm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901845.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1901845</wfw:commentRss><description>&lt;p&gt;If you received a 404 status code when allowUnlisted = false, then please follow this KB article to know which sub status code occurs.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/943891"&gt;http://support.microsoft.com/kb/943891&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you know the sub status code, it is easy to know which request filtering rule needs to be tuned.&lt;/p&gt;</description></item><item><title>Request filtering fileExtensions and default document issue</title><link>http://forums.iis.net/thread/1901643.aspx</link><pubDate>Thu, 23 Apr 2009 16:30:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901643</guid><dc:creator>davide marzucco</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901643.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1901643</wfw:commentRss><description>&lt;p&gt;Hi all, I&amp;#39;m just working on locking down IIS7 with request filtering. &lt;br /&gt;To avoid any misunderstanding here it is the requestFiltering node from my applicationHost.config file:&lt;/p&gt;
&lt;p&gt;&amp;lt;requestFiltering allowHighBitCharacters=&amp;quot;false&amp;quot; allowDoubleEscaping=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;requestLimits maxAllowedContentLength=&amp;quot;30000000&amp;quot; maxUrl=&amp;quot;260&amp;quot; maxQueryString=&amp;quot;50&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileExtensions allowUnlisted=&amp;quot;false&amp;quot; applyToWebDAV=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add fileExtension=&amp;quot;.svc&amp;quot; allowed=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add fileExtension=&amp;quot;.aspx&amp;quot; allowed=&amp;quot;true&amp;quot; /&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add fileExtension=&amp;quot;.jpg&amp;quot; allowed=&amp;quot;true&amp;quot; /&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add fileExtension=&amp;quot;.gif&amp;quot; allowed=&amp;quot;true&amp;quot; /&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add fileExtension=&amp;quot;.png&amp;quot; allowed=&amp;quot;true&amp;quot; /&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add fileExtension=&amp;quot;.zip&amp;quot; allowed=&amp;quot;true&amp;quot; /&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fileExtensions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;verbs allowUnlisted=&amp;quot;false&amp;quot; applyToWebDAV=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add verb=&amp;quot;GET&amp;quot; allowed=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add verb=&amp;quot;POST&amp;quot; allowed=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/verbs&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;hiddenSegments applyToWebDAV=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add segment=&amp;quot;web.config&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add segment=&amp;quot;bin&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add segment=&amp;quot;App_code&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add segment=&amp;quot;App_GlobalResources&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add segment=&amp;quot;App_LocalResources&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add segment=&amp;quot;App_WebReferences&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add segment=&amp;quot;App_Data&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add segment=&amp;quot;App_Browsers&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/hiddenSegments&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;denyUrlSequences&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;add sequence=&amp;quot;..&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/denyUrlSequences&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/requestFiltering&amp;gt;&lt;/p&gt;
&lt;p&gt;Setting allowUnlisted=&amp;quot;false&amp;quot; in the fileExtensions node, causes my root site not to serve anymore the default document. That is, if I browse for &lt;a href="http://www.mysite.com/"&gt;http://www.mysite.com&lt;/a&gt; I receive a 404 not found, being the request for / blocked by the request filtering file extensions rule, although I configured the default document to default.aspx.&lt;br /&gt;Despite, browsing for &lt;a href="http://www.mysite.com/default.aspx"&gt;http://www.mysite.com/default.aspx&lt;/a&gt; everything works fine.&lt;br /&gt;Confirmation comes when changing just allowUnlisted=&amp;quot;true&amp;quot; in the fileExtensions node: in this case the default document is served by IIS, according to the configuration.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m thinking this could be solved with some particular entry in the fileExtensions section. Can someone help me on this please?&lt;/p&gt;
&lt;p&gt;You should agree that for end-users using a short url (&lt;a href="http://www.mysite.com/"&gt;www.mysite.com&lt;/a&gt;) is much more confortable and&amp;nbsp; user-friendly than having to type a &amp;quot;complex&amp;quot; URL with the home document.&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;br /&gt;Regards,&lt;br /&gt;Davide&lt;/p&gt;</description></item></channel></rss>