Skip to content

Commit e0c2a43

Browse files
committed
Java: Deprecate the content of XssLocalQuery and remove the Xss local query variant.
1 parent 3a2b0a2 commit e0c2a43

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

java/ql/lib/semmle/code/java/security/XssLocalQuery.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ private import semmle.code.java.security.XSS
88
/**
99
* A taint-tracking configuration for reasoning about cross-site scripting vulnerabilities from a local source.
1010
*/
11-
module XssLocalConfig implements DataFlow::ConfigSig {
11+
deprecated module XssLocalConfig implements DataFlow::ConfigSig {
1212
predicate isSource(DataFlow::Node source) { source instanceof LocalUserInput }
1313

1414
predicate isSink(DataFlow::Node sink) { sink instanceof XssSink }
@@ -23,6 +23,8 @@ module XssLocalConfig implements DataFlow::ConfigSig {
2323
}
2424

2525
/**
26+
* DEPRECATED: Use `XssFlow` instead and configure threat model sources to include `local`.
27+
*
2628
* Taint-tracking flow for cross-site scripting vulnerabilities from a local source.
2729
*/
28-
module XssLocalFlow = TaintTracking::Global<XssLocalConfig>;
30+
deprecated module XssLocalFlow = TaintTracking::Global<XssLocalConfig>;

java/ql/src/Security/CWE/CWE-079/XSSLocal.qhelp

Lines changed: 0 additions & 5 deletions
This file was deleted.

java/ql/src/Security/CWE/CWE-079/XSSLocal.ql

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)