fix[数据源]: 修复【漏洞】Redshift JDBC RCE Bypass

This commit is contained in:
taojinlong
2026-01-29 11:21:36 +08:00
committed by taojinlong
parent 1e273c4658
commit 8f1c21834a

View File

@@ -19,7 +19,7 @@ import static java.awt.SystemColor.info;
public class Redshift extends DatasourceConfiguration {
private String driver = "com.amazon.redshift.jdbc42.Driver";
private String extraParams = "";
private List<String> illegalParameters = Arrays.asList("socketFactory", "socketFactoryArg", "sslfactory", "sslhostnameverifier", "sslpasswordcallback", "authenticationPluginClassName");
private List<String> illegalParameters = Arrays.asList("socketFactory", "socketFactoryArg", "sslfactory", "sslhostnameverifier", "sslpasswordcallback", "authenticationPluginClassName", "IniFile");
public String getJdbc() {
if (StringUtils.isNoneEmpty(getUrlType()) && !getUrlType().equalsIgnoreCase("hostName")) {