mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Merge pull request #12668 from asgerf/js/jquery-callback-sinks
JS: fix handling of jQuery sinks involving callback
This commit is contained in:
@@ -122,6 +122,14 @@ class Configuration extends TaintTracking::Configuration {
|
||||
TaintedUrlSuffix::step(src, trg, TaintedUrlSuffix::label(), DataFlow::FlowLabel::taint()) and
|
||||
inlbl = TaintedUrlSuffix::label() and
|
||||
outlbl = prefixLabel()
|
||||
or
|
||||
exists(DataFlow::FunctionNode callback, DataFlow::Node arg |
|
||||
any(JQuery::MethodCall c).interpretsArgumentAsHtml(arg) and
|
||||
callback = arg.getABoundFunctionValue(_) and
|
||||
src = callback.getReturnNode() and
|
||||
trg = callback and
|
||||
inlbl = outlbl
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user