Skip to content

Vulnerability: Arbitrary File Read and Deserialization in dataCompare ≤ 1.0.1 #13

@R1ckyZ

Description

@R1ckyZ

BUG_Author: R1ckyZ

Affected Version: dataCompare ≤ 1.0.1

Vendor: dromara

Software: dataCompare

Vulnerability Files:

  • src/main/java/com/vince/xq/project/system/dbconfig/service/DbconfigServiceImpl.java

Description:

The DbConfig does not validate or sanitize the JDBC URL. An attacker can inject dangerous connection parameters such as allowLoadLocalInfile, allowUrlInLocalInfile, and autoDeserialize into the JDBC URL. When the connection test is performed in DbconfigServiceImpl, these properties are activated, potentially leading to arbitrary file read, SSRF, or deserialization-based remote code execution.

Image Image

Proof of Concept:

  1. After logging in, access the API /system/dbconfig/testConnection and pass a carefully crafted JDBC connection via POST parameters, as shown in the image below.
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