mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-08 21:07:51 +00:00
【issues/4393】解决使用参数tableName=sys_user t&复测,漏洞仍然存在
This commit is contained in:
@@ -56,6 +56,9 @@ public class DictQueryBlackListHandler extends AbstractQueryBlackListHandler {
|
||||
if (tableName.contains(" ")) {
|
||||
tableName = tableName.substring(0, tableName.indexOf(" "));
|
||||
}
|
||||
if (tableName.contains(".")) {
|
||||
tableName = tableName.substring(tableName.indexOf(".")+1, tableName.length());
|
||||
}
|
||||
//【issues/4393】 sys_user , (sys_user), sys_user%20, %60sys_user%60
|
||||
String reg = "\\s+|\\(|\\)|`";
|
||||
return tableName.replaceAll(reg, "");
|
||||
|
Reference in New Issue
Block a user