Skip to content

Commit b20d53c

Browse files
Update java/ql/src/semmle/code/java/security/OgnlInjection.qll
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent 7a898a0 commit b20d53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private predicate getAccessorStep(DataFlow::Node n1, DataFlow::Node n2) {
107107
private predicate setExpressionStep(DataFlow::Node n1, DataFlow::Node n2) {
108108
exists(MethodAccess ma, Method m |
109109
n1.asExpr() = ma.getArgument(0) and
110-
n2.asExpr() = ma.getQualifier() and
110+
n2.(PostUpdateNode).getPreUpdateNode().asExpr() = ma.getQualifier() and
111111
ma.getMethod() = m and
112112
m.getDeclaringType().getASupertype*() instanceof TypeExpressionAccessor
113113
|

0 commit comments

Comments
 (0)