File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ private import semmle.code.csharp.dataflow.internal.DataFlowPrivate
7
7
private import semmle.code.csharp.dataflow.internal.ControlFlowReachability
8
8
private import semmle.code.csharp.dispatch.Dispatch
9
9
private import semmle.code.csharp.commons.ComparisonTest
10
+ private import semmle.code.csharp.commons.Collections as Collections
10
11
// import `TaintedMember` definitions from other files to avoid potential reevaluation
11
12
private import semmle.code.csharp.frameworks.JsonNET
12
13
private import semmle.code.csharp.frameworks.WCF
@@ -29,7 +30,11 @@ predicate defaultTaintSanitizer(DataFlow::Node node) {
29
30
* of `c` at sinks and inputs to additional taint steps.
30
31
*/
31
32
bindingset [ node]
32
- predicate defaultImplicitTaintRead ( DataFlow:: Node node , DataFlow:: ContentSet c ) { none ( ) }
33
+ predicate defaultImplicitTaintRead ( DataFlow:: Node node , DataFlow:: ContentSet c ) {
34
+ node instanceof ArgumentNode and
35
+ Collections:: isCollectionType ( node .getType ( ) ) and
36
+ c .isElement ( )
37
+ }
33
38
34
39
private class LocalTaintExprStepConfiguration extends ControlFlowReachabilityConfiguration {
35
40
LocalTaintExprStepConfiguration ( ) { this = "LocalTaintExprStepConfiguration" }
You can’t perform that action at this time.
0 commit comments