mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
change string match to regex match
This commit is contained in:
@@ -154,7 +154,7 @@ predicate isMybatisXmlOrAnnotationSqlInjection(
|
||||
or
|
||||
unsafeExpression.matches("${arg" + i + "%}")
|
||||
or
|
||||
unsafeExpression.matches("${" + ma.getMethod().getParameter(i).getName() + "}")
|
||||
unsafeExpression.regexpMatch("\\$\\{\\s*" + ma.getMethod().getParameter(i).getName() + "\\s*(,.*?)?\\s*\\}")
|
||||
) and
|
||||
ma.getArgument(i) = node.asExpr()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user