use isLikelyIntentionalHtmlSink in the sink instead of in the where clause

This commit is contained in:
Erik Krogh Kristensen
2020-09-03 15:48:30 +02:00
parent 58f51899c9
commit 6fccf5aa70
3 changed files with 7 additions and 6 deletions

View File

@@ -20,7 +20,6 @@ from
JQuery::JQueryPluginMethod plugin
where
cfg.hasFlowPath(source, sink) and
source.getNode().(Source).getPlugin() = plugin and
not isLikelyIntentionalHtmlSink(plugin, sink.getNode())
source.getNode().(Source).getPlugin() = plugin
select sink.getNode(), source, sink, "Potential XSS vulnerability in the $@.", plugin,
"'$.fn." + plugin.getPluginName() + "' plugin"