mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Add binding between annotation and sink-param
This commit is contained in:
@@ -134,7 +134,8 @@ predicate isMybatisXmlOrAnnotationSqlInjection(
|
||||
.matches("${" + annotation.getValue("value").(CompileTimeConstantExpr).getStringValue() +
|
||||
"%}") and
|
||||
annotation.getType() instanceof TypeParam and
|
||||
ma.getAnArgument() = node.asExpr()
|
||||
ma.getAnArgument() = node.asExpr() and
|
||||
annotation.getTarget() = ma.getMethod().getParameter(node.asExpr().getIndex())
|
||||
)
|
||||
or
|
||||
// MyBatis default parameter sql injection vulnerabilities.the default parameter form of the method is arg[0...n] or param[1...n].
|
||||
|
||||
Reference in New Issue
Block a user