Skip to content

XXE in MsBibImporter #4229

Closed
Closed
@prodigysml

Description

@prodigysml

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();

The following code snippet displays the parsing of the XML:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: import-loaddev: code-qualityIssues related to code or architecture decisionsgood first issueAn issue intended for project-newcomers. Varies in difficulty.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions