Skip to content

Arbitrary Command Execution via Database Driver Upload #33

@startsw1th

Description

@startsw1th

Description

DataGear is an open-source and free data visualization analysis platform that allows you to freely create any kind of data dashboard you want, supporting access to multiple data sources such as SQL, CSV, Excel, HTTP interface, JSON, etc.

DataGear 5.2.0 and below allows uploading arbitrary database drivers, which can lead to arbitrary command execution.

Reproduction
Step 1:
Upload the modified database driver file,mysql-connector-java-8.0.28.jar.
The connect method in com.mysql.cj.jdbc.NonRegisteringDriver has been modified to accept the username as a command for execution.
image

image

Step 2:
Create a new data source, select the recently uploaded driver as the data driver, enter "calc" as the username, and click test. This will open the calculator.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions