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 663The identity under which the ASP.NET worker process runs is controlled by settingson the element in Machine.config. The following review questionshelp verify your process identity settings:● What identity do you use to run ASP.NET?Check the userName <strong>and</strong> password attributes. Ideally, you use the followingconfiguration that results in the ASP.NET process running under the leastprivileged ASPNET account.●Do you encrypt the credentials?If you use a custom account, make sure that the account credentials are notspecified in plaintext in Machine.config. Make sure the Aspnet_setreg.exe utilityhas been used to store encrypted credentials in the registry. If this has been used,the userName <strong>and</strong> password attributes look similar to the settings shown below:●Do you use a least privileged account?The default ASPNET account is a least privileged local account designed to runASP.NET. To use it for remote resource access, you need to create a duplicateaccount on the remote server. Alternatively, you can create a least privilegeddomain account.Check that the account is not a member of the Users group, <strong>and</strong> view the userrights assignment in the Local <strong>Security</strong> Policy tool to confirm it is not granted anyextended or unnecessary user rights. Make sure it is not granted the “Act as partof the operating system” user right.<strong>Web</strong> ServicesThe goal for this phase of the review is to identify vulnerabilities in the configurationof your <strong>Web</strong> services. For further background information about the issues raised bythe review questions in this section, see Chapter 17, “Securing Your <strong>Application</strong>Server,” <strong>and</strong> Chapter 19, “Securing Your ASP.NET <strong>Application</strong>s <strong>and</strong> <strong>Web</strong> Services.”

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

Saved successfully!

Ooh no, something went wrong!