mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Do not discard XSS sinks when non-content-type headers are local to the sendArgument expression
This commit is contained in:
@@ -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())
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user