Skip to content

Commit b7c3dd6

Browse files
Java: Clean up MVEL injection query
1 parent 2842aee commit b7c3dd6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

java/ql/src/experimental/Security/CWE/CWE-094/MvelInjection.qhelp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The following example uses untrusted data to build a MVEL expression
2323
and then runs it in the default powerfull context.
2424
</p>
2525
<sample src="UnsafeMvelExpressionEvaluation.java" />
26+
</example>
2627

2728
<references>
2829
<li>

java/ql/src/experimental/Security/CWE/CWE-094/MvelInjectionLib.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ predicate createCompiledAccExpressionStep(DataFlow::Node node1, DataFlow::Node n
100100
)
101101
}
102102

103-
predicate test() {
104-
exists(ConstructorCall cc | cc.getConstructedType() instanceof CompiledAccExpression)
105-
}
106-
107103
/**
108104
* Holds if `node1` to `node2` is a dataflow step that compiles a MVEL expression
109105
* by calling `ExpressionCompiler.compile()`.

0 commit comments

Comments
 (0)