File tree Expand file tree Collapse file tree
java/ql/src/experimental/Security/CWE/CWE-094 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313import java
1414import JShellInjection
15- import semmle.code.java.dataflow.DataFlow2
1615import semmle.code.java.dataflow.FlowSources
1716import DataFlow:: PathGraph
1817
@@ -24,12 +23,12 @@ class JShellInjectionConfiguration extends TaintTracking::Configuration {
2423 override predicate isSink ( DataFlow:: Node sink ) { sink instanceof JShellInjectionSink }
2524
2625 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 ( )
3332 )
3433 }
3534}
You can’t perform that action at this time.
0 commit comments