Skip to content

Commit 7eb3fd2

Browse files
committed
Conform queries to Config naming convention
1 parent d317de1 commit 7eb3fd2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

java/ql/src/Security/CWE/CWE-200/AndroidWebViewSettingsAllowsContentAccess.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private newtype WebViewOrSettings =
6565
IsWebView() or
6666
IsSettings()
6767

68-
private module WebViewDisallowContentAccessConfiguration implements DataFlow::StateConfigSig {
68+
private module WebViewDisallowContentAccessConfig implements DataFlow::StateConfigSig {
6969
class FlowState = WebViewOrSettings;
7070

7171
predicate isSource(DataFlow::Node node, FlowState state) {
@@ -102,7 +102,7 @@ private module WebViewDisallowContentAccessConfiguration implements DataFlow::St
102102
}
103103

104104
module WebViewDisallowContentAccessFlow =
105-
TaintTracking::MakeWithState<WebViewDisallowContentAccessConfiguration>;
105+
TaintTracking::MakeWithState<WebViewDisallowContentAccessConfig>;
106106

107107
from Expr e
108108
where

java/ql/src/Security/CWE/CWE-297/UnsafeHostnameVerification.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class TrustAllHostnameVerifier extends RefType {
4444
/**
4545
* A configuration to model the flow of a `TrustAllHostnameVerifier` to a `set(Default)HostnameVerifier` call.
4646
*/
47-
private module TrustAllHostnameVerifierConfiguration implements DataFlow::ConfigSig {
47+
private module TrustAllHostnameVerifierConfig implements DataFlow::ConfigSig {
4848
predicate isSource(DataFlow::Node source) {
4949
source.asExpr().(ClassInstanceExpr).getConstructedType() instanceof TrustAllHostnameVerifier
5050
}
@@ -77,7 +77,7 @@ private module TrustAllHostnameVerifierConfiguration implements DataFlow::Config
7777
}
7878
}
7979

80-
module TrustAllHostnameVerifierFlow = DataFlow::Make<TrustAllHostnameVerifierConfiguration>;
80+
module TrustAllHostnameVerifierFlow = DataFlow::Make<TrustAllHostnameVerifierConfig>;
8181

8282
import TrustAllHostnameVerifierFlow::PathGraph
8383

java/ql/src/Security/CWE/CWE-643/XPathInjection.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ import semmle.code.java.dataflow.FlowSources
1616
import semmle.code.java.dataflow.TaintTracking
1717
import semmle.code.java.security.XPath
1818

19-
private module XPathInjectionConfiguration implements DataFlow::ConfigSig {
19+
private module XPathInjectionConfig implements DataFlow::ConfigSig {
2020
predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
2121

2222
predicate isSink(DataFlow::Node sink) { sink instanceof XPathInjectionSink }
2323
}
2424

25-
module XPathInjectionFlow = TaintTracking::Make<XPathInjectionConfiguration>;
25+
module XPathInjectionFlow = TaintTracking::Make<XPathInjectionConfig>;
2626

2727
import XPathInjectionFlow::PathGraph
2828

0 commit comments

Comments
 (0)