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.

458 Part IV: Securing Your Network, Host, <strong>and</strong> <strong>Application</strong>5. Click Configuration. The tabbed page shown in Figure 16.4 is displayed.Figure 16.4Mapping application extensions6. Select one of the extensions from the list, <strong>and</strong> then click Edit.7. Click Browse <strong>and</strong> navigate to \WINNT\system32\inetsrv\404.dll.Note This step assumes that you have previously run IISlockd.exe, as the 404.dll is installed bythe IISLockdown tool.8. Click Open, <strong>and</strong> then click OK.9. Repeat steps 6, 7 <strong>and</strong> 8 for all of the remaining file extensions.Map .NET Framework File ExtensionsThe following .NET Framework file extensions are mapped to aspnet_isapi.dll:.asax, .ascx, .ashx, .asmx, .aspx, .axd, .vsdisco, .jsl, .java, .vjsproj, .rem, .soap, .config,.cs, .csproj, .vb, .vbproj, .webinfo, .licx, .resx, <strong>and</strong> .resources.The .NET Framework protects file extensions that should not be directly calledby clients by associating them with System.<strong>Web</strong>.HttpForbiddenH<strong>and</strong>ler inMachine.config. The following file extensions are mapped toSystem.<strong>Web</strong>.HttpForbiddenH<strong>and</strong>ler by default: .asax, .ascx, .config, .cs,.csproj, .vb, .vbproj, .webinfo, .asp, .licx, .resx, <strong>and</strong> .resources.For more information on HTTP h<strong>and</strong>lers, see “Step 16: Machine.config.”

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

Saved successfully!

Ooh no, something went wrong!