We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bbd37f commit b0c86d8Copy full SHA for b0c86d8
java/ql/src/experimental/Security/CWE/CWE-089/MyBatisCommonLib.qll
@@ -154,7 +154,7 @@ predicate isMybatisXmlOrAnnotationSqlInjection(
154
or
155
unsafeExpression.matches("${arg" + i + "%}")
156
157
- unsafeExpression.matches("${" + ma.getMethod().getParameter(i).getName() + "}")
+ unsafeExpression.regexpMatch("\\$\\{\\s*" + ma.getMethod().getParameter(i).getName() + "\\s*(,.*?)?\\s*\\}")
158
) and
159
ma.getArgument(i) = node.asExpr()
160
)
0 commit comments