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

[#4211] improvement(catalog-jdbc-mysql): Validated databaseName preve… #4222

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ria28
Copy link

@ria28 ria28 commented Jul 20, 2024

…nting possible SQL injection in MysqlDatabaseOperations.java

What changes were proposed in this pull request?

databaseName in generateDropDatabaseSql method inside MysqlDatabaseOperations.java is not validated making the code vulnerable to SQL injection.
The PR has validation for databaseName ( Null and empty check)

Why are the changes needed?

To prevent possible SQL injection

Fix: #4211

Does this PR introduce any user-facing change?

No

How was this patch tested?

N/A

… preventing possible SQL injection in MysqlDatabaseOperations.java
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

Successfully merging this pull request may close these issues.

[Improvement] Possible SQL injection in MysqlDatabaseOperations.java
1 participant