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.

Chapter 11: Building Secure Serviced Components 315DCOM uses RPC dynamic port allocation that by default r<strong>and</strong>omly selects portnumbers above 1024. In addition, port 135 is used by the RPC endpoint mapper. Youcan restrict the ports required to support DCOM on the internal firewall in two ways:● Define port ranges.This allows you to control the ports dynamically allocated by RPC.●Use static endpoint mapping.Windows 2000 SP3 (or Quick Fix Engineering [QFE] 18.1 <strong>and</strong> greater) or WindowsServer 2003 allow you to configure Enterprise Services applications to use a staticendpoint. Static endpoint mapping means that you only need to open two ports inthe firewall. Specifically, you must open port 135 for RPC <strong>and</strong> a nominated portfor your Enterprise Services application.For more information about defining port ranges <strong>and</strong> static endpoint mapping, see“Firewall Considerations” in Chapter 17, “Securing Your <strong>Application</strong> Server.”Using <strong>Web</strong> ServicesIf opening ports on the internal firewall is not an option, then you can introduce a<strong>Web</strong> services façade layer in front of the serviced components on the applicationserver. This means that you only need to open port 80 for HTTP traffic <strong>and</strong>specifically for Simple Object Access Protocol (SOAP) messages to flow in bothdirections as shown in Figure 11.4.<strong>Web</strong> Server<strong>Application</strong> Server<strong>Web</strong><strong>Application</strong>SOAPPort80<strong>Web</strong>ServicesFacadeEnterpriseServicesPerimeterFirewallInternalFirewallFigure 11.4Using a <strong>Web</strong> services façade layer to communicate with Enterprise Services using HTTPThis approach does not allow you to flow transaction context from client to server,although in many cases where your deployment architecture includes a middle-tierapplication server, it is appropriate to initiate transactions in the remote servicedcomponent on the application server.For information about physical deployment requirements for service agents <strong>and</strong>service interfaces such as the <strong>Web</strong> services façade layer, see “Physical Deployment<strong>and</strong> Operational Requirements” in the Reference section of the MSDN article,“<strong>Application</strong> Architecture for .NET: Designing <strong>Application</strong>s <strong>and</strong> Services.”

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

Saved successfully!

Ooh no, something went wrong!