mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
add the html argument to the jQuery functions as an XSS sink
This commit is contained in:
@@ -540,9 +540,9 @@ module JQuery {
|
||||
JQuery::isMethodArgumentInterpretedAsHtml(name) and
|
||||
node = this.getAnArgument()
|
||||
or
|
||||
// for `$, it's only the first one
|
||||
// for `$, it's only the first one, or an "html" option
|
||||
name = "$" and
|
||||
node = this.getArgument(0)
|
||||
node = [this.getArgument(0), this.getOptionArgument(1, "html")]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user