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.

Chapter 16: Securing Your <strong>Web</strong> Server 429●●●●●●●Auditing <strong>and</strong> LoggingAuditing is one of your most important tools for identifying intruders, attacks inprogress, <strong>and</strong> evidence of attacks that have occurred. Use a combination ofWindows <strong>and</strong> IIS auditing features to configure auditing on your <strong>Web</strong> server.Event <strong>and</strong> system logs also help you to troubleshoot security problems.Sites <strong>and</strong> Virtual DirectoriesSites <strong>and</strong> virtual directories are directly exposed to the Internet. Even thoughsecure firewall configuration <strong>and</strong> defensive ISAPI filters such as URLScan (whichships with the IISLockdown tool) can block requests for restricted configurationfiles or program executables, a defense in depth strategy is recommended.Relocate sites <strong>and</strong> virtual directories to non-system partitions <strong>and</strong> use IIS <strong>Web</strong>permissions to further restrict access.Script MappingsRemove all unnecessary IIS script mappings for optional file extensions to preventan attacker from exploiting any bugs in the ISAPI extensions that h<strong>and</strong>le thesetypes of files. Unused extension mappings are often overlooked <strong>and</strong> represent amajor security vulnerability.ISAPI FiltersAttackers have been successful in exploiting vulnerabilities in ISAPI filters.Remove unnecessary ISAPI filters from the <strong>Web</strong> server.IIS MetabaseThe IIS metabase maintains IIS configuration settings. You must be sure that thesecurity related settings are appropriately configured, <strong>and</strong> that access to themetabase file is restricted with hardened NTFS permissions.Machine.configThe Machine.config file stores machine-level configuration settings applied to.NET Framework applications including ASP.NET <strong>Web</strong> applications. Modify thesettings in Machine.config to ensure that secure defaults are applied to anyASP.NET application installed on the server.Code Access <strong>Security</strong>Restrict code access security policy settings to ensure that code downloaded fromthe Internet or intranet have no permissions <strong>and</strong> as a result will not be allowed toexecute.

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

Saved successfully!

Ooh no, something went wrong!