CAPECattack pattern
CAPEC-201 Serialized Data External Linking
High
Official page ↗
- Abstraction
- Detailed
- Status
- Draft
- Likelihood of attack
- High
- Typical severity
- High
- CAPEC version
- 3.9
Description
An adversary creates a serialized data file (e.g. XML, YAML, etc...) that contains an external data reference. Because serialized data parsers may not validate documents with external references, there may be no checks on the nature of the reference in the external data. This can allow an adversary to open arbitrary files or connections, which may further lead to the adversary gaining access to information on the system that they would normally be unable to obtain.
Execution flow
1. [Explore] [Survey the target] Using a browser or an automated tool, an adversary records all instances of web services that process requests with serialized data.
2. [Exploit] [Craft malicious payload] The adversary crafts malicious data message that contains references to sensitive files.
3. [Exploit] [Launch an External Linking attack] Send the malicious crafted message containing the reference to a sensitive file to the target URL.
Prerequisites
• The target must follow external data references without validating the validity of the reference target.
Skills required
• [Low] To send serialized data messages with maliciously crafted schema.
Consequences
• Confidentiality: Read Data
Mitigations
• Configure the serialized data processor to only retrieve external entities from trusted sources.
Related
Child of · CAPEC (2)
Weakness · CWE (1)
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness
Referenced by CWE · attack pattern (1)
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness