11.07.2015 Views

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

804 <strong>Improving</strong> <strong>Web</strong> <strong>Application</strong> <strong>Security</strong>: <strong>Threats</strong> <strong>and</strong> CountermeasuresMasking Content Headers (Banners)To prevent banner information that reveals the type <strong>and</strong> version of your <strong>Web</strong> server,locate the RemoveServerHeader attribute in URLScan.ini, <strong>and</strong> set its value to 1 asshown below.RemoveServerHeader=1PitfallsFor more information, see Microsoft Knowledge Base article, 317741, “How To: MaskIIS Version Information from Network Trace <strong>and</strong> Telnet.”If you use URLScan, you might run into the following issues:●●●ReferencesURLScan blocks the DEBUG verb which breaks application debugging. If youneed to support debugging, add the DEBUG verb to the [AllowVerbs] section inURLScan.ini.You need to recycle IIS for changes to take effect. URLScan is an ISAPI filter thatruns inside the IIS process (Inetinfo.exe) <strong>and</strong> URLScan’s options are loaded fromURLScan.ini when IIS starts up. You can run the IISReset comm<strong>and</strong> from acomm<strong>and</strong> prompt to recycle IIS.URLScan blocks requests that contain potentially harmful characters, for example,characters that have been used to exploit vulnerabilities in the past such as “.”used for directory traversal. It is not recommended that project paths contain the“.” character. If you must allow this, you need to set AllowDotInPath=1 inURLScan.ini.If your <strong>Web</strong> application directories include dots in the path, for example, adirectory containing the name “Asp.Net”, then URLScan will reject the request<strong>and</strong> a “404 not found” message will be returned to the client.Other characters to avoid in project names because they will be rejected byURLScan include comma (,) <strong>and</strong> the pound sign (#).For additional information, refer to the following resources:● For more information about how to modify the various sections in Urlscan.ini,refer to Microsoft Knowledge Base article 815155 “How To: Configure URLScan toProtect ASP.NET <strong>Web</strong> <strong>Application</strong>s.”● For more information about using URLScan, see http://www.nardware.co.uk/<strong>Security</strong>/Docs/Nmsurlscan.html.● For more information about URLScan 2.5, refer to Microsoft Knowledge Basearticle 307608, “INFO: Availability of URLScan Version 2.5 <strong>Security</strong> Tool.”

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!