mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
allow the empty string to flow to a JQuery XSS sink
This commit is contained in:
@@ -80,6 +80,7 @@ module DomBasedXss {
|
||||
not exists(DataFlow::Node prefix, string strval |
|
||||
isPrefixOfJQueryHtmlString(this, prefix) and
|
||||
strval = prefix.getStringValue() and
|
||||
not strval = "" and
|
||||
not strval.regexpMatch("\\s*<.*")
|
||||
) and
|
||||
not DOM::locationRef().flowsTo(this)
|
||||
|
||||
Reference in New Issue
Block a user