fix: 【漏洞】Dataease H2 JDBC RCE Bypass

This commit is contained in:
taojinlong
2025-06-03 16:29:31 +08:00
committed by taojinlong
parent 7cd046d279
commit dd35752f29

View File

@@ -19,7 +19,7 @@ public class H2 extends DatasourceConfiguration {
public String getJdbc() {
for (String illegalParameter : illegalParameters) {
if (jdbc.toUpperCase().contains(illegalParameter)) {
if (jdbc.toUpperCase().replace("\\", "").contains(illegalParameter)) {
DEException.throwException("Has illegal parameter: " + jdbc);
}
}