0dd - The Zero (0) Day Division

The Zero (0) Day Division is a group of security professionals working towards a common goal; securing open-source projects.

XXE vulnerability in JabRef MsBibImporter

The Issue

An XML External Entity attack is a type of attack against an application that parses XML input. This attack occurs when XML input containing a reference to an external entity is processed by a weakly configured XML parser. This attack may lead to the disclosure of confidential data, denial of service, server side request forgery, port scanning from the perspective of the machine where the parser is located, and other system impacts.

Where the Issue Occurred

The following code snippet displays the usage of DocumentBuilderFactory without disabling entities:

DocumentBuilder dbuild = DocumentBuilderFactory.newInstance().newDocumentBuilder();

Source: src/main/java/org/jabref/logic/importer/fileformat/MsBibImporter.java#L40

The following code snippet displays the parsing of the XML:

docin = dbuild.parse(new InputSource(reader)); 

Source: src/main/java/org/jabref/logic/importer/fileformat/MsBibImporter.java#L58

Disclosure Timeline

  • Issue Reported: 23rd July 2018
  • Issue Resolved: <TBD>
  • Blog Post Published: 8th August 2018
  • Applied for CVE: 8th August 2018