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 12: Building Secure <strong>Web</strong> Services 323Disclosure of Configuration DataThere are two main ways in which a <strong>Web</strong> service can disclose configuration data.First, the <strong>Web</strong> service may support the dynamic generation of <strong>Web</strong> ServiceDescription Language (WSDL) or it may provide WSDL information indownloadable files that are available on the <strong>Web</strong> server. This may not be desirabledepending on your scenario.Note WSDL describes the characteristics of a <strong>Web</strong> service, for example, its method signatures <strong>and</strong>supported protocols.Second, with inadequate exception h<strong>and</strong>ling the <strong>Web</strong> service may disclose sensitiveinternal implementation details useful to an attacker.VulnerabilitiesVulnerabilities that can lead to the disclosure of configuration data include:●●●Unrestricted WSDL files available for download from the <strong>Web</strong> serverA restricted <strong>Web</strong> service supports the dynamic generation of WSDL <strong>and</strong> allowsunauthorized consumers to obtain <strong>Web</strong> service characteristicsWeak exception h<strong>and</strong>lingCountermeasuresYou can use the following countermeasures to prevent the unwanted disclosure ofconfiguration data:● Authorize access to WSDL files using NTFS permissions.● Remove WSDL files from <strong>Web</strong> server.● Disable the documentation protocols to prevent the dynamic generation of WSDL.● Capture exceptions <strong>and</strong> throw a SoapException or SoapHeaderException — thatreturns only minimal <strong>and</strong> harmless information — back to the client.Message Replay<strong>Web</strong> service messages can potentially travel through multiple intermediate servers.With a message replay attack, an attacker captures <strong>and</strong> copies a message <strong>and</strong> replaysit to the <strong>Web</strong> service impersonating the client. The message may or may not bemodified.

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

Saved successfully!

Ooh no, something went wrong!