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

DataSource Mysql JDBC Connection has two vulnerabilities : arbitrary file read and Server-side request forgery(SSRF) #2326

Open
Bertram2000 opened this issue Apr 23, 2023 · 0 comments

Comments

@Bertram2000
Copy link

Bertram2000 commented Apr 23, 2023

use a malicious mysql server:

login and then
Mysql JDBC Connection is set as a malicious server
image

Click Test Connection
two vulnerabilities :
1.arbitrary file read:
image

success!
image

2.Server-side request forgery(SSRF) :
image

Visit Baidu success!
image

Repair suggestion:
Set these properties to false:allowLoadLocalInfile、allowUrlInLocalInfile

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