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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

486 Part IV: Securing Your Network, Host, <strong>and</strong> <strong>Application</strong>For more information on SQL Server port requirements, see Chapter 18, “SecuringYour Database Server.”.NET Remoting <strong>Security</strong> ConsiderationsThe .NET Remoting infrastructure enables applications to communicate with oneanother on the same machine or across machines in a network. The Remotinginfrastructure can use the HTTP or TCP transports for communication <strong>and</strong> can sendmessages in many formats, the most common of which are SOAP or binary format.Hosting in a Windows Service (TCP Channel)Because the Remoting infrastructure provides no default authentication <strong>and</strong>authorization mechanisms, it is not recommended for use by Internet-facingapplications. It is designed for applications that run in a trusted environment <strong>and</strong> iswell suited for <strong>Web</strong> server communication to remote application servers, which isshown in Figure 17.5.<strong>Web</strong> Server(Client)TCP ChannelIPSec(SecureCommunication)WindowsServiceHostFigure 17.5Remoting with the TCP channel <strong>and</strong> a Windows service hostIn this scenario, a Windows service hosts the Remoting objects <strong>and</strong> communicationoccurs through a TCP channel. This approach offers good performance, but does notnecessarily address security. For added security, use IPSec between the <strong>Web</strong> server<strong>and</strong> the application server <strong>and</strong> only allow the <strong>Web</strong> server to establish connectionswith the application server.Hosting in IIS (HTTP Channel)To benefit from the security features provided by ASP.NET <strong>and</strong> IIS, host yourremote components in ASP.NET <strong>and</strong> use the HTTP channel for communication,as Figure 17.6 shows.

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

Saved successfully!

Ooh no, something went wrong!