File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
lib/semmle/code/java/security Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ private import semmle.code.java.dataflow.DataFlow2
8
8
9
9
/**
10
10
* The creation of an object that prepares an SSL connection.
11
+ * This is a source for `SslEndpointIdentificationFlowConfig`.
11
12
*/
12
13
class SslConnectionInit extends DataFlow:: Node {
13
14
SslConnectionInit ( ) {
@@ -18,6 +19,7 @@ class SslConnectionInit extends DataFlow::Node {
18
19
19
20
/**
20
21
* A call to a method that establishes an SSL connection.
22
+ * This is a sink for `SslEndpointIdentificationFlowConfig`.
21
23
*/
22
24
class SslConnectionCreation extends DataFlow:: Node {
23
25
SslConnectionCreation ( ) {
@@ -41,12 +43,14 @@ class SslConnectionCreation extends DataFlow::Node {
41
43
}
42
44
43
45
/**
44
- * An SSL object that was assigned a safe `SSLParameters` object an can be considered safe.
46
+ * An SSL object that was assigned a safe `SSLParameters` object and can be considered safe.
47
+ * This is a sanitizer for `SslEndpointIdentificationFlowConfig`.
45
48
*/
46
- class SslConnectionWithSafeSslParameters extends Expr {
49
+ class SslConnectionWithSafeSslParameters extends DataFlow :: Node {
47
50
SslConnectionWithSafeSslParameters ( ) {
48
51
exists ( SafeSslParametersFlowConfig config , DataFlow:: Node safe |
49
- config .hasFlowTo ( safe ) and this = safe .asExpr ( ) .( Argument ) .getCall ( ) .getQualifier ( )
52
+ config .hasFlowTo ( safe ) and
53
+ this = DataFlow:: exprNode ( safe .asExpr ( ) .( Argument ) .getCall ( ) .getQualifier ( ) )
50
54
)
51
55
}
52
56
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class SslEndpointIdentificationFlowConfig extends TaintTracking::Configuration {
23
23
override predicate isSink ( DataFlow:: Node sink ) { sink instanceof SslConnectionCreation }
24
24
25
25
override predicate isSanitizer ( DataFlow:: Node sanitizer ) {
26
- sanitizer . asExpr ( ) instanceof SslConnectionWithSafeSslParameters
26
+ sanitizer instanceof SslConnectionWithSafeSslParameters
27
27
}
28
28
}
29
29
You can’t perform that action at this time.
0 commit comments