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 1
1
import semmle.code.csharp.security.dataflow.flowsources.Stored
2
2
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 }
5
5
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 ( ) }
9
7
}
10
8
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 )
13
13
select sink
You can’t perform that action at this time.
0 commit comments