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.

574 Part IV: Securing Your Network, Host, <strong>and</strong> <strong>Application</strong>Disable Unused ProtocolsThe element defines the protocols that <strong>Web</strong> services support. By default,HttpPost <strong>and</strong> HttpGet are disabled on .NET Framework version 1.1 as follows:By disabling unnecessary protocols, including HttpPost <strong>and</strong> HttpGet, you reducethe attack surface area. For example, it is possible for an external attacker to embed amalicious link in an e-mail to execute an internal <strong>Web</strong> service using the end user’ssecurity context. Disabling the HttpGet protocol is an effective countermeasure.In many ways, this is similar to an XSS attack. A variation of this attack uses an tag on a publicly accessible <strong>Web</strong> page to embed a GET call to anintranet <strong>Web</strong> service. Both attacks can allow an outsider to invoke an internal <strong>Web</strong>service. Disabling protocols mitigates the risk.If your production server provides publicly discoverable <strong>Web</strong> services, you mustenable HttpGet <strong>and</strong> HttpPost to allow the service to be discovered over theseprotocols.Disable the Automatic Generation of WSDLThe Documentation protocol is used to dynamically generate <strong>Web</strong> ServiceDescription Language (WSDL). WSDL describes the characteristics of a <strong>Web</strong> service,such as its method signatures <strong>and</strong> supported protocols. Clients use this informationto construct appropriately formatted messages. By default, <strong>Web</strong> services publiclyexpose WSDL, which makes it available to anyone who can connect to the <strong>Web</strong> serverover the Internet.At times, you might want to distribute the WSDL files manually to your partners <strong>and</strong>prevent public access. With this approach, the development team can provideindividual .wsdl files for each <strong>Web</strong> service to the operations team. The operationsteam can then distribute them to specified partners who want to use the <strong>Web</strong>services.

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

Saved successfully!

Ooh no, something went wrong!