File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
csharp/ql/test/library-tests/security/dataflow/flowsources Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11import semmle.code.csharp.security.dataflow.flowsources.Stored
22
3- class StoredConfig extends TaintTracking :: Configuration {
4- StoredConfig ( ) { this = "stored" }
3+ module StoredConfig implements DataFlow :: ConfigSig {
4+ predicate isSource ( DataFlow :: Node s ) { s instanceof StoredFlowSource }
55
6- override predicate isSource ( DataFlow:: Node s ) { s instanceof StoredFlowSource }
7-
8- override predicate isSink ( DataFlow:: Node s ) { s .asExpr ( ) .fromSource ( ) }
6+ predicate isSink ( DataFlow:: Node s ) { s .asExpr ( ) .fromSource ( ) }
97}
108
11- from StoredConfig s , DataFlow:: Node sink
12- where s .hasFlow ( any ( StoredFlowSource sfs ) , sink )
9+ module Stored = TaintTracking:: Global< StoredConfig > ;
10+
11+ from DataFlow:: Node sink
12+ where Stored:: flow ( any ( StoredFlowSource sfs ) , sink )
1313select sink
You can’t perform that action at this time.
0 commit comments