move the XssThroughDom sources into the Customizations file

This commit is contained in:
Erik Krogh Kristensen
2022-04-20 10:36:50 +02:00
parent ad14bbae90
commit 25708c5091
3 changed files with 10 additions and 6 deletions

View File

@@ -170,10 +170,12 @@ deprecated module StoredXss {
import StoredXssCustomizations::StoredXss
}
/** Provides classes and predicates for the XSS through DOM query. */
module XssThroughDom {
/** A data flow source for XSS through DOM vulnerabilities. */
abstract class Source extends Shared::Source { }
/**
* DEPRECATED: Use the `XssThroughDomCustomizations.qll` file instead.
* Provides classes and predicates for the XSS through DOM query.
*/
deprecated module XssThroughDom {
import XssThroughDomCustomizations::XssThroughDom
}
/** Provides classes for customizing the `ExceptionXss` query. */

View File

@@ -9,10 +9,13 @@ import javascript
* Sources for cross-site scripting vulnerabilities through the DOM.
*/
module XssThroughDom {
import Xss::XssThroughDom
private import Xss::Shared as Shared
private import semmle.javascript.dataflow.InferredTypes
private import semmle.javascript.security.dataflow.DomBasedXssCustomizations
/** A data flow source for XSS through DOM vulnerabilities. */
abstract class Source extends Shared::Source { }
/**
* Gets an attribute name that could store user-controlled data.
*

View File

@@ -5,7 +5,6 @@
import javascript
private import semmle.javascript.dataflow.InferredTypes
import Xss::XssThroughDom
private import XssThroughDomCustomizations::XssThroughDom
private import semmle.javascript.security.dataflow.DomBasedXssCustomizations
private import semmle.javascript.security.dataflow.UnsafeJQueryPluginCustomizations::UnsafeJQueryPlugin as UnsafeJQuery