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 17: Securing Your <strong>Application</strong> Server 481.NET RemotingTwo possible implementation models exist for applications that use .NET Remoting:● HTTP channel over port 80This model uses ASP.NET as the hosting service.● TCP channel over any portIn this model, the application is hosted inside a custom executable, usually aWindows service.Depending on the performance <strong>and</strong> security requirements of the application, you canuse one of two methods to secure the Remoting channel.● Use SSL with the HTTPChannel.If you host in ASP.NET, you can take advantage of the built-in HTTPSfunctionality provided by IIS. HTTPS provides authentication <strong>and</strong> secure datacommunication.● Use IPSec with the TCPChannel.With the TCP channel, you can use an IPSec policy to provide transport-layerencryption for all IP data. Note that if you use the TCP channel, you must provideyour own authentication mechanism. For more information, see Chapter 13,“Building Secure Remoted Components.”<strong>Web</strong> Services<strong>Web</strong> services are hosted by ASP.NET <strong>and</strong> IIS, <strong>and</strong> the services use the HTTP protocolfor communication over the network.SSL or IPSec can be used to secure the communication channel. Alternatively,encryption can be h<strong>and</strong>led at the application layer by encrypting the messagepayload or the sensitive parts of the payload. To do this using open st<strong>and</strong>ards, usethe <strong>Web</strong> Services Enhancements (WSE) download available for <strong>Web</strong> services. Formore information, see Chapter 12, “Building Secure <strong>Web</strong> Services.”SQL ServerThe application server communicates with SQL Server using TCP port 1433 bydefault. Unless otherwise configured, UDP port 1434 is also used for negotiation.To secure the channel from the application server to SQL Server, use IPSec or SSL.SSL requires a server certificate to be installed on the database server.For more information on using SSL with SQL Server, see Microsoft Knowledge Basearticle 276553, “How To: Enable SSL Encryption for SQL Server 2000 with CertificateServer.”

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

Saved successfully!

Ooh no, something went wrong!