Dark Mode

Settings

Capec-228 Detail

DTD Injection

Detailed Software Typical Severity: Medium

Parents: 250

Threats: T290

Description

An attacker injects malicious content into an application's DTD in an attempt to produce a negative technical impact. DTDs are used to describe how XML documents are processed. Certain malformed DTDs (for example, those with excessive entity expansion as described in CAPEC 197) can cause the XML parsers that process the DTDs to consume excessive resources resulting in resource depletion.

Not present

External ID Source Link Description
CAPEC-228 capec https://capec.mitre.org/data/definitions/228.html
CWE-829 cwe http://cwe.mitre.org/data/definitions/829.html
REF-86 reference_from_CAPEC http://www.internetnews.com/dev-news/article.php/3289191 Ryan Naraine, DoS Flaw in SOAP DTD Parameter, InternetNews.com, 2003--12---15, ITBusiness Edge, Quinstreet Inc.
Explore
  1. Survey the target: Using a browser or an automated tool, an attacker records all instances of web services to process XML requests.

  2. Techniques
    Use an automated tool to record all instances of URLs to process XML requests.
    Use a browser to manually explore the website and analyze how the application processes XML requests.
  3. Determine use of XML with DTDs: Examine application input to identify XML input that leverage the use of one or more DTDs.

  4. Techniques
    Examine any available documentation for the application that discusses expected XML input.
    Exercise the application using XML input with and without a DTD specified. Failure without DTD likely indicates use of DTD.
Exploit
  1. [Craft and inject XML containg malicious DTD payload]

  2. Techniques
    Inject XML expansion attack that creates a Denial of Service impact on the targeted server using its DTD.
    Inject XML External Entity (XEE) attack that can cause the disclosure of confidential information, execute abitrary code, create a Denial of Service of the targeted server, or several other malicious impacts.
  1. The target must be running an XML based application that leverages DTDs.

Not present

Not present

Not present

Not present