Do not discard XSS sinks when non-content-type headers are local to the sendArgument expression

This commit is contained in:
Alvaro Muñoz
2022-10-13 17:50:43 +02:00
parent 744cea9baa
commit 41fea776e8

View File

@@ -97,6 +97,7 @@ module ReflectedXss {
// There is no dominating header, and `header` is non-local.
not isLocalHeaderDefinition(header) and
not exists(Http::HeaderDefinition dominatingHeader |
dominatingHeader.getAHeaderName() = "content-type" and
dominatingHeader.getBasicBlock().(ReachableBasicBlock).dominates(sender.getBasicBlock())
)
)