CAPEC-219: XML Routing Detour Attacks
CAPEC版本: 3.9
更新日期: 2023-01-24
攻击模式描述
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.
执行流程
步骤 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.
所需技能
所需资源
- The attacker must be able to insert or compromise a system into the processing path for the transaction.
后果影响
影响范围: Integrity
技术影响: Modify Data
影响范围: Confidentiality
技术影响: Read Data
影响范围: Accountability Authentication Authorization Non-Repudiation
技术影响: Gain Privileges
影响范围: Access Control Authorization
技术影响: Bypass Protection Mechanism
缓解措施
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.
分类映射
| 分类名称 | 条目ID | 条目名称 |
|---|---|---|
| WASC | 32 | Routing Detour |
| WASC | 44 | XML Entity Expansion |