Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary Command Execution via Database Driver Upload #33

Open
startsw1th opened this issue Sep 9, 2024 · 0 comments
Open

Arbitrary Command Execution via Database Driver Upload #33

startsw1th opened this issue Sep 9, 2024 · 0 comments

Comments

@startsw1th
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant