File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
java/ql/src/experimental/Security/CWE/CWE-094 Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 12
12
13
13
import java
14
14
import JShellInjection
15
- import semmle.code.java.dataflow.DataFlow2
16
15
import semmle.code.java.dataflow.FlowSources
17
16
import DataFlow:: PathGraph
18
17
@@ -24,12 +23,12 @@ class JShellInjectionConfiguration extends TaintTracking::Configuration {
24
23
override predicate isSink ( DataFlow:: Node sink ) { sink instanceof JShellInjectionSink }
25
24
26
25
override predicate isAdditionalTaintStep ( DataFlow:: Node pred , DataFlow:: Node succ ) {
27
- exists (
28
- SourceCodeAnalysisAnalyzeCompletionCall scaacc , CompletionInfoSourceOrRemainingCall cisorc
29
- |
30
- scaacc . getArgument ( 0 ) = pred . asExpr ( ) and
31
- cisorc = succ . asExpr ( ) and
32
- DataFlow2 :: localExprFlow ( scaacc , cisorc .getQualifier ( ) )
26
+ exists ( SourceCodeAnalysisAnalyzeCompletionCall scaacc |
27
+ scaacc . getArgument ( 0 ) = pred . asExpr ( ) and scaacc = succ . asExpr ( )
28
+ )
29
+ or
30
+ exists ( CompletionInfoSourceOrRemainingCall cisorc |
31
+ cisorc .getQualifier ( ) = pred . asExpr ( ) and cisorc = succ . asExpr ( )
33
32
)
34
33
}
35
34
}
You can’t perform that action at this time.
0 commit comments