mirror of
https://github.com/dataease/dataease.git
synced 2026-06-14 17:51:43 +08:00
fix: 修复Mysql JDBC 连接参数未验证导致任意文件读取漏洞
This commit is contained in:
@@ -36,7 +36,7 @@ public class MysqlConfiguration extends JdbcConfiguration {
|
||||
public List<String> getIllegalParameters() {
|
||||
List<String> newIllegalParameters = new ArrayList<>();
|
||||
newIllegalParameters.addAll(illegalParameters);
|
||||
newIllegalParameters.addAll(Arrays.asList("allowloadlocalinfile", "allowUrlInLocalInfile", "allowLoadLocalInfileInPath"));
|
||||
newIllegalParameters.addAll(Arrays.asList("maxAllowedPacket", "allowloadlocalinfile", "allowUrlInLocalInfile", "allowLoadLocalInfileInPath"));
|
||||
return newIllegalParameters;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user