We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b99e8a commit 4307889Copy full SHA for 4307889
ruby/ql/lib/codeql/ruby/security/UnsafeShellCommandConstructionQuery.qll
@@ -33,8 +33,11 @@ class Configuration extends TaintTracking::Configuration {
33
result instanceof DataFlow::FeatureHasSourceCallContext
34
}
35
36
- override predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c) {
+ override predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet set) {
37
+ // allow implicit reads of array elements
38
this.isSink(node) and
- c.isKnownOrUnknownElement(_)
39
+ set.isKnownOrUnknownElement(any(DataFlow::Content::KnownElementContent content |
40
+ content.getIndex().getValueType() = "int"
41
+ ))
42
43
0 commit comments