update QueryGenerator的sql注入问题

This commit is contained in:
lijiarao
2023-11-15 17:24:02 +08:00
parent 41655b2089
commit 17a910971b
@@ -23,7 +23,7 @@ public class SqlInjectionUtil {
* (上线修改值 20200501,同步修改前端的盐值)
*/
private static final String TABLE_DICT_SIGN_SALT = "20200501";
private static final String XSS_STR = "'|and |exec |insert |select |delete |update |drop |count |chr |mid |master |truncate |char |declare |;|or |+";
private static final String XSS_STR = "'|and |exec |insert |select |delete |update |drop |count |chr |mid |master |truncate |char |declare |;|or |+|--";
private static final String SYMBOL_CONSTANT = "/\\*.*\\*/";
private static final String SQL_INJECTION_CONSTANT = "请注意,存在SQL注入关键词---> {}";