CAPEC-219

XML Routing Detour Attacks
2014-06-23
00h00 +00:00
高危
中危
Draft
2022-09-29
00h00 +00:00
指定 CAPEC 提醒
随时了解指定 CAPEC 的变更。
管理通知

CAPEC 描述

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.

CAPEC 信息

执行流程

1) Explore

[Survey the target] Using command line or an automated tool, an attacker records all instances of web services to process XML requests.

技术手段
  • Use automated tool to record all instances to process XML requests or find exposed WSDL.
  • Use tools to crawl WSDL
2) Experiment

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

技术手段
  • Inspect the SOAP message routing head 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).

技术手段
  • The attacker injects a bogus routing node (using a WS-Referral service) into the routing table of the XML header of the SOAP message

前提条件

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

所需技能

To inject a bogus node in the XML routing table

所需资源

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

缓解措施

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.

相关弱点

CWE-ID 弱点名称

CWE-441

Unintended Proxy or Intermediary
The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere.

CWE-610

Externally Controlled Reference to a Resource in Another Sphere
The product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere.

参考资料

REF-80

WASC Threat Classification 2.0
http://projects.webappsec.org/w/page/13246956/Routing-Detour

REF-81

Threat Protection in a Service Oriented World
Andre Yee.
http://www.unatekconference.com/images/pdfs/presentations/Yee.pdf

REF-65

Attacking & Defending Web Services
Pete Lindstrom.
http://www.webtorials.com/main/comnet/cn2003/web-service/24.pdf

提交记录

名称 组织 日期 发布日期
CAPEC Content Team The MITRE Corporation 2014-06-23 +00:00

修改记录

名称 组织 日期 备注
CAPEC Content Team The MITRE Corporation 2017-08-04 +00:00 Updated Related_Attack_Patterns
CAPEC Content Team The MITRE Corporation 2020-07-30 +00:00 Updated Description, Example_Instances
CAPEC Content Team The MITRE Corporation 2020-12-17 +00:00 Updated Taxonomy_Mappings
CAPEC Content Team The MITRE Corporation 2021-06-24 +00:00 Updated Description, Example_Instances
CAPEC Content Team The MITRE Corporation 2022-09-29 +00:00 Updated Example_Instances