mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-09 05:59:16 +00:00
【issues/4393】解决使用参数tableName=sys_user t&复测,漏洞仍然存在
This commit is contained in:
@@ -67,14 +67,14 @@ public abstract class AbstractQueryBlackListHandler {
|
||||
}
|
||||
for (QueryTable table : list) {
|
||||
String name = table.getName();
|
||||
String fieldString = ruleMap.get(name);
|
||||
String fieldRule = ruleMap.get(name);
|
||||
// 有没有配置这张表
|
||||
if (fieldString != null) {
|
||||
if ("*".equals(fieldString) || table.isAll()) {
|
||||
if (fieldRule != null) {
|
||||
if ("*".equals(fieldRule) || table.isAll()) {
|
||||
flag = false;
|
||||
log.warn("sql黑名单校验,表【"+name+"】禁止查询");
|
||||
break;
|
||||
} else if (table.existSameField(fieldString)) {
|
||||
} else if (table.existSameField(fieldRule)) {
|
||||
flag = false;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user