CVE-2012-6685 - Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Severity

75%

Complexity

39%

Confidentiality

60%

Nokogiri before 1.5.4 is vulnerable to XXE attacks

Nokogiri before 1.5.4 is vulnerable to XXE attacks

CVSS 3.1 Base Score 7.5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

CVSS 2.0 Base Score 5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (AV:N/AC:L/Au:N/C:P/I:N/A:N).

Demo Examples

Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

CWE-776

The DTD and the very brief XML below illustrate what is meant by an XML bomb. The ZERO entity contains one character, the letter A. The choice of entity name ZERO is being used to indicate length equivalent to that exponent on two, that is, the length of ZERO is 2^0. Similarly, ONE refers to ZERO twice, therefore the XML parser will expand ONE to a length of 2, or 2^1. Ultimately, we reach entity THIRTYTWO, which will expand to 2^32 characters in length, or 4 GB, probably consuming far more data than expected.


               
<data>&THIRTYTWO;</data>

Overview

Type

Red

First reported 5 years ago

2020-02-19 15:15:00

Last updated 4 years ago

2020-02-25 18:35:00

Affected Software

Red Hat CloudForms Management Engine 5.0

5.0

RedHat Enterprise MRG 2.0

2.0

Red Hat OpenShift 2.0 Enterprise Edition

2.0

Red Hat OpenStack 4.0

4.0

Red Hat OpenStack Foreman

Red Hat Satellite 6.0

6.0

Red Hat Subscription Asset Manager

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.