CAPECattack pattern

CAPEC-219 XML Routing Detour Attacks

Medium Official page ↗
Abstraction
Standard
Status
Draft
Likelihood of attack
High
Typical severity
Medium
CAPEC version
3.9

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.

Execution flow

1. [Explore] [Survey the target] Using command line or an automated tool, an attacker records all instances of web services to process XML requests. 2. [Experiment] [Identify SOAP messages that have multiple state processing.] Inspect instance to see whether the XML processing has multiple stages or not. 3. [Exploit] [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).

Prerequisites

• The targeted system must have multiple stages processing of XML content.

Skills required

• [Low] To inject a bogus node in the XML routing table

Consequences

• Integrity: Modify Data • Confidentiality: Read Data • Accountability, Authentication, Authorization, Non-Repudiation: Gain Privileges • Access Control, Authorization: Bypass Protection Mechanism

Mitigations

• Design: Specify maximum number intermediate nodes for the request and require SSL connections with mutual authentication. • Implementation: Use SSL for connections between all parties with mutual authentication.

Related

Child of · CAPEC (1)

  • CAPEC-94 Adversary in the Middle (AiTM) attack pattern

Weakness · CWE (2)

  • CWE-441 Unintended Proxy or Intermediary weakness
  • CWE-610 Externally Controlled Reference to a Resource in Another Sphere weakness

Referenced by CWE · attack pattern (2)

  • CWE-441 Unintended Proxy or Intermediary weakness
  • CWE-610 Externally Controlled Reference to a Resource in Another Sphere weakness