mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
add jQuery options objects as sources
This commit is contained in:
@@ -13,6 +13,7 @@ module UnsafeHtmlConstruction {
|
||||
private import semmle.javascript.security.dataflow.DomBasedXssCustomizations::DomBasedXss as DomBasedXss
|
||||
private import semmle.javascript.security.dataflow.UnsafeJQueryPluginCustomizations::UnsafeJQueryPlugin as UnsafeJQueryPlugin
|
||||
private import semmle.javascript.PackageExports as Exports
|
||||
private import semmle.javascript.security.dataflow.UnsafeJQueryPlugin::UnsafeJQueryPlugin as UnsafeJQueryPlugin
|
||||
|
||||
/**
|
||||
* A source for unsafe HTML constructed from library input.
|
||||
@@ -29,6 +30,13 @@ module UnsafeHtmlConstruction {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A jQuery plugin options object, seen as a source for unsafe HTML constructed from input.
|
||||
*/
|
||||
class JQueryPluginOptionsAsSource extends Source {
|
||||
JQueryPluginOptionsAsSource() { this instanceof UnsafeJQueryPlugin::JQueryPluginOptions }
|
||||
}
|
||||
|
||||
/**
|
||||
* A sink for unsafe HTML constructed from library input.
|
||||
* This sink somehow transforms its input into a value that can cause XSS if it ends up in a XSS sink.
|
||||
|
||||
Reference in New Issue
Block a user