mirror of
https://github.com/github/codeql.git
synced 2026-04-18 21:44:02 +02:00
JS: Move 'this' sanitizer to customizations
This commit is contained in:
@@ -31,6 +31,13 @@ module UnsafeJQueryPlugin {
|
||||
*/
|
||||
abstract class Sanitizer extends DataFlow::Node { }
|
||||
|
||||
/**
|
||||
* The receiver of a function, seen as a sanitizer.
|
||||
*
|
||||
* Plugins often do `$(this)` to coerce an existing DOM element to a jQuery object.
|
||||
*/
|
||||
private class ThisSanitizer extends Sanitizer instanceof DataFlow::ThisNode { }
|
||||
|
||||
/**
|
||||
* An argument that may act as an HTML fragment rather than a CSS selector, as a sink for remote unsafe jQuery plugins.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user