Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25708c5

Browse files
committed
move the XssThroughDom sources into the Customizations file
1 parent ad14bba commit 25708c5

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

javascript/ql/lib/semmle/javascript/security/dataflow/Xss.qll

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,12 @@ deprecated module StoredXss {
170170
import StoredXssCustomizations::StoredXss
171171
}
172172

173-
/** Provides classes and predicates for the XSS through DOM query. */
174-
module XssThroughDom {
175-
/** A data flow source for XSS through DOM vulnerabilities. */
176-
abstract class Source extends Shared::Source { }
173+
/**
174+
* DEPRECATED: Use the `XssThroughDomCustomizations.qll` file instead.
175+
* Provides classes and predicates for the XSS through DOM query.
176+
*/
177+
deprecated module XssThroughDom {
178+
import XssThroughDomCustomizations::XssThroughDom
177179
}
178180

179181
/** Provides classes for customizing the `ExceptionXss` query. */

javascript/ql/lib/semmle/javascript/security/dataflow/XssThroughDomCustomizations.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ import javascript
99
* Sources for cross-site scripting vulnerabilities through the DOM.
1010
*/
1111
module XssThroughDom {
12-
import Xss::XssThroughDom
12+
private import Xss::Shared as Shared
1313
private import semmle.javascript.dataflow.InferredTypes
1414
private import semmle.javascript.security.dataflow.DomBasedXssCustomizations
1515

16+
/** A data flow source for XSS through DOM vulnerabilities. */
17+
abstract class Source extends Shared::Source { }
18+
1619
/**
1720
* Gets an attribute name that could store user-controlled data.
1821
*

javascript/ql/lib/semmle/javascript/security/dataflow/XssThroughDomQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import javascript
77
private import semmle.javascript.dataflow.InferredTypes
8-
import Xss::XssThroughDom
98
private import XssThroughDomCustomizations::XssThroughDom
109
private import semmle.javascript.security.dataflow.DomBasedXssCustomizations
1110
private import semmle.javascript.security.dataflow.UnsafeJQueryPluginCustomizations::UnsafeJQueryPlugin as UnsafeJQuery

0 commit comments

Comments
 (0)