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.

Solutions at a Glance lxxiii●●●How to secure against denial of service attacksMake sure the TCP/IP stack configuration on your server is hardened to protectagainst attacks such as SYN floods. Configure ASP.NET to limit the size ofaccepted POST requests <strong>and</strong> to place limits on request execution times.For more information about hardening TCP/IP, see “How To: Harden the TCP/IPStack” in the “How To” section of this guide. For more information aboutASP.NET settings used to help prevent denial of service, see Chapter 19, “SecuringYour ASP.NET <strong>Application</strong> <strong>and</strong> <strong>Web</strong> Services.”How to constrain file I/OYou can configure code access security policy to ensure that individual assembliesor entire <strong>Web</strong> applications are limited in their ability to access the file system. Forexample, by configuring a <strong>Web</strong> application to run at the Medium trust level, youprevent the application from being able to access files outside of its virtualdirectory hierarchy.Also, by granting a restricted file I/O permission to a particular assembly you cancontrol precisely which files it is able to access <strong>and</strong> how it should be able to accessthem.For more information, see Chapter 9, “Using Code Access <strong>Security</strong> with ASP.NET”<strong>and</strong> “How To: Use Code Access <strong>Security</strong> Policy to Constrain an Assembly” in the“How To” section of this guide.How to perform remote administrationTerminal Services provides a proprietary protocol (RDP.) This supportsauthentication <strong>and</strong> can provide encryption. If you need a file transfer facility,you can install the File Copy utility from the Windows 2000 Server resource kit.The use of IIS <strong>Web</strong> administration is not recommended <strong>and</strong> this option is removedif you run IISLockdown. You should consider providing an encrypted channel ofcommunication <strong>and</strong> using IPSec to limit the computers that can be used toremotely administer your server. You should also limit the number ofadministration accounts.For more information, see the “Remote Administration” sections in Chapter 16,“Securing Your <strong>Web</strong> Server” <strong>and</strong> Chapter 18, “Securing Your Database Server.”

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

Saved successfully!

Ooh no, something went wrong!