mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Add comment on importance of Function.getACall()
This commit is contained in:
@@ -25,6 +25,11 @@ class UnescapedType extends Type {
|
||||
|
||||
/**
|
||||
* Holds if the sink is a data value argument of a template execution call.
|
||||
*
|
||||
* Note that this is slightly more general than
|
||||
* `SharedXss::HtmlTemplateSanitizer` because it uses `Function.getACall()`,
|
||||
* which finds calls through interfaces which the receiver implements. This
|
||||
* finds more results in practice.
|
||||
*/
|
||||
predicate isSinkToTemplateExec(DataFlow::Node sink) {
|
||||
exists(Method fn, string methodName, DataFlow::CallNode call |
|
||||
|
||||
Reference in New Issue
Block a user