mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
add importScripts as a sink for js/client-side-unvalidated-url-redirection
This commit is contained in:
@@ -132,6 +132,15 @@ module ClientSideUrlRedirect {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* An argument to `importScripts(..)` - which is used inside `WebWorker`s to import new scripts - viewed as a `ScriptUrlSink`.
|
||||
*/
|
||||
class ImportScriptsSink extends ScriptUrlSink {
|
||||
ImportScriptsSink() {
|
||||
this = DataFlow::globalVarRef("importScripts").getACall().getAnArgument()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A script or iframe `src` attribute, viewed as a `ScriptUrlSink`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user