Dark Mode

Settings

Capec-219 Detail

XML Routing Detour Attacks

Standard Communications Software Likelihood: High Typical Severity: Medium

Parents: 94

Threats: T296

Description

An attacker subverts an intermediate system used to process XML content and forces the intermediate to modify and/or re-route the processing of the content. XML Routing Detour Attacks are Adversary in the Middle type attacks (CAPEC-94). The attacker compromises or inserts an intermediate system in the processing of the XML message. For example, WS-Routing can be used to specify a series of nodes or intermediaries through which content is passed. If any of the intermediate nodes in this route are compromised by an attacker they could be used for a routing detour attack. From the compromised system the attacker is able to route the XML process to other nodes of their choice and modify the responses so that the normal chain of processing is unaware of the interception. This system can forward the message to an outside entity and hide the forwarding and processing from the legitimate processing systems by altering the header information.

Not present

External ID Source Link Description
CAPEC-219 capec https://capec.mitre.org/data/definitions/219.html
CWE-441 cwe http://cwe.mitre.org/data/definitions/441.html
CWE-610 cwe http://cwe.mitre.org/data/definitions/610.html
32 WASC http://projects.webappsec.org/Routing-Detour Routing Detour
44 WASC http://projects.webappsec.org/XML-Entity-Expansion XML Entity Expansion
REF-80 reference_from_CAPEC http://projects.webappsec.org/w/page/13246956/Routing-Detour WASC Threat Classification 2.0, 2010, The Web Application Security Consortium (WASC)
REF-81 reference_from_CAPEC http://www.unatekconference.com/images/pdfs/presentations/Yee.pdf Andre Yee, Threat Protection in a Service Oriented World, NFR Security
REF-65 reference_from_CAPEC http://www.webtorials.com/main/comnet/cn2003/web-service/24.pdf Pete Lindstrom, Attacking & Defending Web Services, 2002, SPiRE Security
Explore
  1. Survey the target: Using command line or an automated tool, an attacker records all instances of web services to process XML requests.

  2. Techniques
    Use automated tool to record all instances to process XML requests or find exposed WSDL.
    Use tools to crawl WSDL
Experiment
  1. Identify SOAP messages that have multiple state processing.: Inspect instance to see whether the XML processing has multiple stages or not.

  2. Techniques
    Inspect the SOAP message routing head to see whether the XML processing has multiple stages or not.
Exploit
  1. Launch an XML routing detour attack: The attacker injects a bogus routing node (using a WS-Referral service) into the routing table of the XML header of the SOAP message identified in the Explore phase. Thus, the attacker can route the XML message to the attacker controlled node (and access the message contents).

  2. Techniques
    The attacker injects a bogus routing node (using a WS-Referral service) into the routing table of the XML header of the SOAP message
  1. The targeted system must have multiple stages processing of XML content.
  1. The attacker must be able to insert or compromise a system into the processing path for the transaction.
Low
To inject a bogus node in the XML routing table
Integrity Authorization Access Control Accountability Authentication Confidentiality Non-Repudiation
Modify Data Gain Privileges Bypass Protection Mechanism Gain Privileges Gain Privileges Read Data Gain Privileges
Bypass Protection Mechanism
  1. Here is an example SOAP call from a client, example1.com, to a target, example4.com, via 2 intermediaries, example2.com and example3.com. (note: The client here is not necessarily a 'end user client' but rather the starting point of the XML transaction). Example SOAP message with routing information in header: http://example1.com/ http://example4.com/router uuid:1235678-abcd-1a2b-3c4d-1a2b3c4d5e6f http://example2.com/router ... Add an additional node (example3.com/router) to the XML path in a WS-Referral message http://example2.com/router http://example3.com/router Resulting in the following SOAP Header: http://example1.com/ http://example4.com/router uuid:1235678-abcd-1a2b-3c4d-1a2b3c4d5e6f http://example2.com/router http://example3.com/router ... Continuing with this example, the attacker injects a bogus routing node (using a WS-Referral service) into the routing table of the XML header but not access the message directly on the initiator/intermediary node that they have targeted. Example of WS-Referral based WS-Routing injection of the bogus node route: http://example2.com/router http://evilsite1.com/router Resulting XML Routing Detour attack: http://example_0.com/ http://example_4.com/router uuid:1235678-abcd-1a2b-3c4d-1a2b3c4d5e6f http://example2.com/router http://evilesite1.com/router http://example3.com/router ... Thus, the attacker can route the XML message to the attacker controlled node (and access to the message contents).