JS: Factor RequestHeaderAccess into separate class

This commit is contained in:
Asger F
2018-09-27 15:58:00 +01:00
parent c879654796
commit e4c8653549
10 changed files with 194 additions and 101 deletions

View File

@@ -14,7 +14,7 @@ class TaintedHostHeader extends TaintTracking::Configuration {
TaintedHostHeader() { this = "TaintedHostHeader" }
override predicate isSource(DataFlow::Node node) {
exists (HTTP::RequestInputAccess input | node = input |
exists (HTTP::RequestHeaderAccess input | node = input |
input.getKind() = "header" and
input.getAHeaderName() = "host")
}