mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Merge pull request #5391 from erik-krogh/additionalXss
Approved by asgerf
This commit is contained in:
@@ -44,7 +44,8 @@ class RemoteServerResponse extends HeuristicSource, RemoteFlowSource {
|
||||
// exclude URLs to the current host
|
||||
r.getUrl().mayHaveStringValue(url) and
|
||||
protocolPattern = "(?[a-z+]{3,10}:)" and
|
||||
not url.regexpMatch(protocolPattern + "?//.*")
|
||||
not url.regexpMatch(protocolPattern + "?//.*") and
|
||||
not url.prefix(2) = ["{{", "{%"] // look like templating
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user