1. CVE archive
  2. 2008
  3. CVE-2008-5024

CVE-2008-5024

7.5 High severity CVSS v2.0 · source NVD AV:N/AC:L/Au:N/C:P/I:P/A:P 7.5 – High

Description

Mozilla Firefox 3.x before 3.0.4, Firefox 2.x before 2.0.0.18, Thunderbird 2.x before 2.0.0.18, and SeaMonkey 1.x before 1.1.13 do not properly escape quote characters used for XML processing, which allows remote attackers to conduct XML injection attacks via the default namespace in an E4X document.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 6.06 –
canonical ubuntu linux 7.10 –
canonical ubuntu linux 8.04 –
canonical ubuntu linux 8.10 –
debian debian linux 4.0 –
mozilla firefox >= 2.0 < 2.0.0.18 –
mozilla firefox >= 3.0 < 3.0.4 –
mozilla seamonkey >= 1.0 < 1.1.13 –
mozilla thunderbird >= 2.0 < 2.0.0.18 –
All 3,913 Mozilla Firefox vulnerabilities
All 704 Mozilla Seamonkey vulnerabilities
All 2,551 Mozilla Thunderbird vulnerabilities

Vulnerability type

CWE-91 XML Injection

The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.

Within XML, special elements could include reserved words or characters such as <, >, , and &, which could then be used to add new data or modify XML syntax.

Impact on systems

ScopeImpact
Confidentiality, Integrity, Availability Execute Unauthorized Code or Commands, Read Application Data, Modify Application Data

How to prevent it

Implementation · Input Validation Assume all input is malicious. Use an accept known good input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, boat may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as red or blue. Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

All 156 CWE-91 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org