apache/gravitino

[Improvement] Possible SQL injection in MysqlDatabaseOperations.java and JdbcDatabaseOperations.java

Open

#3.026 geöffnet am 19. Apr. 2024

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (887 Forks)auto 404
good first issueimprovement

Repository-Metriken

Stars
 (3.058 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

What would you like to be improved?

The database name should be validated before but used to construct an SQL to show tables. (Search for "SHOW TABLES IN".) Note that the SQL strings are also built in different ways in each file and probably should be built the same way.

How should we improve?

Validate the name or use query parameters.

Contributor Guide