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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 22: Deployment Review 657Machine.ConfigThe .NET Framework configuration for all applications on your server is maintainedin Machine.config. For the purposes of the security review, this section examines thesettings in Machine.config from top to bottom <strong>and</strong> considers only those settings thatrelate to security.The majority of security settings are contained beneath the element,with the notable exception of <strong>Web</strong> service configuration <strong>and</strong> .NET Remotingconfiguration. The review process for <strong>Web</strong> services <strong>and</strong> .NET Remoting configurationis presented later in this chapter.For more information <strong>and</strong> background about the issues raised by the followingreview questions, see Chapter 19, “Securing Your ASP.NET <strong>Application</strong> <strong>and</strong> <strong>Web</strong>Services.” The following elements are reviewed in this section:●●●●●●●●●●●●●Make sure tracing is disabled with the following setting.Verify the value of the maxRequestLength attribute on the element.You can use this value to prevent users from uploading very large files. Themaximum allowed value is 4 MB.Check that you do not compile debug binaries. Make sure the debug attribute is setto false.

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

Saved successfully!

Ooh no, something went wrong!