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
77private import semmle.code.csharp.dataflow.internal.ControlFlowReachability
88private import semmle.code.csharp.dispatch.Dispatch
99private import semmle.code.csharp.commons.ComparisonTest
10+ private import semmle.code.csharp.commons.Collections as Collections
1011// import `TaintedMember` definitions from other files to avoid potential reevaluation
1112private import semmle.code.csharp.frameworks.JsonNET
1213private import semmle.code.csharp.frameworks.WCF
@@ -29,7 +30,11 @@ predicate defaultTaintSanitizer(DataFlow::Node node) {
2930 * of `c` at sinks and inputs to additional taint steps.
3031 */
3132bindingset [ 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+ }
3338
3439private class LocalTaintExprStepConfiguration extends ControlFlowReachabilityConfiguration {
3540 LocalTaintExprStepConfiguration ( ) { this = "LocalTaintExprStepConfiguration" }
You can’t perform that action at this time.
0 commit comments