mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: whitelist $(location) in simple cases
This commit is contained in:
@@ -91,7 +91,8 @@ module DomBasedXss {
|
||||
isPrefixOfJQueryHtmlString(astNode, prefix) and
|
||||
strval = prefix.asExpr().getStringValue() and
|
||||
not strval.regexpMatch("\\s*<.*")
|
||||
)
|
||||
) and
|
||||
not isDocumentURL(astNode)
|
||||
)
|
||||
or
|
||||
// call to an Angular method that interprets its argument as HTML
|
||||
|
||||
Reference in New Issue
Block a user