mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
fix: 【漏洞】Dataease H2 JDBC RCE Bypass
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user