Update java/ql/src/semmle/code/java/security/OgnlInjection.qll

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
Tony Torralba
2021-07-29 15:08:27 +02:00
committed by GitHub
parent 7a898a04f3
commit b20d53cfd4

View File

@@ -107,7 +107,7 @@ private predicate getAccessorStep(DataFlow::Node n1, DataFlow::Node n2) {
private predicate setExpressionStep(DataFlow::Node n1, DataFlow::Node n2) {
exists(MethodAccess ma, Method m |
n1.asExpr() = ma.getArgument(0) and
n2.asExpr() = ma.getQualifier() and
n2.(PostUpdateNode).getPreUpdateNode().asExpr() = ma.getQualifier() and
ma.getMethod() = m and
m.getDeclaringType().getASupertype*() instanceof TypeExpressionAccessor
|