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 13: Building Secure Remoted Components 355AuthenticationIf your remote component exposes sensitive data or operations, it must authenticateits callers to support authorization. The .NET Framework remoting infrastructuredoes not define an authentication model. The host should h<strong>and</strong>le authentication. Forexample, you can use ASP.NET to benefit from ASP.NET <strong>and</strong> IIS authenticationfeatures.If you use a custom Windows service host, develop a custom authentication solution.ASP.NET HostingThe following guidelines apply if you use the ASP.NET host with the HttpChannel:●●●●●●Turn off anonymous authentication in IIS.Configure ASP.NET for Windows authentication.Configure client credentials.Increase performance with authenticated connection sharing.Force clients to authenticate with each call.Control the use of authenticated connections.Turn off Anonymous Authentication in IISTo ensure that callers are authenticated by IIS, make sure that your application’svirtual directory does not support anonymous authentication. On WindowsServer 2003, you should also ensure that .NET Passport authentication is disabled.Since you have disabled IIS anonymous authentication, you can use any of thesupported IIS authentication mechanisms to authenticate callers over theHttpChannel, for example Basic, Digest, <strong>and</strong> Integrated Windows. To avoidcredentials being passed over the network <strong>and</strong> to take advantage of Windows 2000security account <strong>and</strong> password policies, use Integrated Windows authentication.Configure ASP.NET for Windows AuthenticationConfigure your application for Windows authentication with the following setting in<strong>Web</strong>.config:You cannot use Passport or Forms authentication because these require redirection toa login page.Note When you use Windows authentication, you are recommended to enable File authorization.For more information, see “Authorization” later in this chapter.

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

Saved successfully!

Ooh no, something went wrong!