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.

556 Part IV: Securing Your Network, Host, <strong>and</strong> <strong>Application</strong>Use the element to configure the application’s trust level. By default, theconfiguration level is set to Full, as shown below:This means that the application is granted full <strong>and</strong> unrestricted CAS permissions.With this configuration, the success or failure of any resource access performed by theapplication depends only on operating system security.If you change the trust level to a level other than Full, you may break existingASP.NET <strong>Web</strong> applications depending on the types of resources they access <strong>and</strong> theoperations they perform. <strong>Application</strong>s should be thoroughly tested at each trust level.For more information about building partial-trust <strong>Web</strong> applications that use CAS, seeChapter 9, “Using Code Access <strong>Security</strong> with ASP.NET.” For more information aboutusing trust levels to provide application isolation, see Chapter 20, “Hosting MultipleASP.NET <strong>Web</strong> <strong>Application</strong>s.”Process Identity for ASP.NETASP.NET <strong>Web</strong> applications <strong>and</strong> <strong>Web</strong> services run in a shared instance of the ASP.NETworker process (Aspnet_wp.exe). Process-level settings, including the processidentity, are configured using the element in Machine.config.The identity for the ASP.NET worker process is configured using the userName <strong>and</strong>password attributes on the element. When you configure processidentity:● Use the default ASPNET account.●●●Use a least-privileged custom account.Encrypt credentials.Do not run ASP.NET as SYSTEM.Use the Default ASPNET AccountThe local ASPNET account is the default least privileged account specifically forrunning ASP.NET <strong>Web</strong> applications <strong>and</strong> <strong>Web</strong> services. Use this account if you can byusing the following default configuration:

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

Saved successfully!

Ooh no, something went wrong!