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 661This element is used to specify encryption <strong>and</strong> validation keys, <strong>and</strong> the algorithmsused to protect Forms authentication cookies <strong>and</strong> page level view state.●Do you run multiple applications on the same server?If so, use the IsolateApps setting to ensure a separate key is generated for each<strong>Web</strong> application.●●Do you run in a <strong>Web</strong> farm?If so, make sure that you use specific machine keys <strong>and</strong> copy them across allservers in the farm.Do you protect view state?If you protect view state, for example, by setting enableViewSetMac=“true” onthe element, set validation=“SHA1” (Secure Hash Algorithm) or “3DES”on the element. The Triple Data Encryption St<strong>and</strong>ard (3DES)setting is required if you also encrypt the Forms authentication cookie by settingprotection=“All” on the element.The element determines the code access security trust level used to runASP.NET <strong>Web</strong> applications <strong>and</strong> <strong>Web</strong> services.● What version of the .NET Framework do you run?If you run .NET Framework 1.0 then the trust level must be set to Full. Forversions equal to or greater than 1.1, you can change it to one of the following:●What trust level do you use?Based on security policy <strong>and</strong> the agreement with the development team; set anappropriate trust level for the application either in <strong>Web</strong>.config or inMachine.config.

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

Saved successfully!

Ooh no, something went wrong!