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.

304 Part III: Building Secure <strong>Web</strong> <strong>Application</strong>sAuthenticationEnterprise Services applications use Windows authentication. This is either NTLMor Kerberos authentication depending on the client <strong>and</strong> server operating system. InWindows 2000 or Windows Server 2003 environments, Kerberos authentication isused.The main issue for you to consider when building serviced components is to ensurethat all calls are authenticated to prevent anonymous users from accessing yourcomponent’s functionality.Use (At Least) Call Level AuthenticationTo reject anonymous callers, use at least call level authentication. Configure thissetting by adding the following attribute to your serviced component assembly:[assembly: <strong>Application</strong>AccessControl(Authentication = AuthenticationOption.Call)]Note This is equivalent to setting Authentication level for calls to Call on the <strong>Security</strong> tab of theapplication’s Properties dialog box in Component Services.AuthorizationEnterprise Services uses COM+ roles for authorization. You can control thegranularity of authorization to applications, components, interfaces, <strong>and</strong> methods.To prevent users from performing restricted operations exposed by your application’sserviced components:● Enable role-based security.●●Enable component level access checks.Enforce component level access checks.Enable Role-Based <strong>Security</strong>Role-based security is disabled by default on Windows 2000. The reverse is true onWindows Server 2003. To ensure that role based security is automatically enabledwhen your component is registered (usually by using Regsvcs.exe), add the followingattribute to your serviced component assembly.[assembly: <strong>Application</strong>AccessControl(true)]Note Using this attribute is equivalent to selecting Enforce access checks for this application onthe <strong>Security</strong> tab of the application’s Properties dialog box in Component Services.

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

Saved successfully!

Ooh no, something went wrong!