Skip to content

Commit 3ef7a09

Browse files
committed
Add flow through string concatenation
1 parent f29d2c2 commit 3ef7a09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

go/ql/src/Security/CWE-020/IncompleteHostnameRegexp.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ module IncompleteHostNameRegexpConfig implements DataFlow::ConfigSig {
101101
) and
102102
not regexpGuardsError(sink)
103103
}
104+
105+
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
106+
StringOps::Concatenation::taintStep(node1, node2)
107+
}
104108
}
105109

106110
module Flow = DataFlow::Global<IncompleteHostNameRegexpConfig>;

0 commit comments

Comments
 (0)