fix: 修复Mysql JDBC 连接参数未验证导致任意文件读取漏洞

This commit is contained in:
taojinlong
2025-02-05 16:08:12 +08:00
committed by taojinlong
parent 0de36f1312
commit 340739ce80

View File

@@ -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;
}