@@ -95,7 +95,7 @@ private class ProduceCiphertextCall extends ProduceCryptoCall {
95
95
}
96
96
97
97
/** Holds if `fromNode` to `toNode` is a dataflow step that updates a cryptographic operation. */
98
- private predicate updateCryptoOperationStep ( DataFlow2 :: Node fromNode , DataFlow2 :: Node toNode ) {
98
+ private predicate updateCryptoOperationStep ( DataFlow :: Node fromNode , DataFlow :: Node toNode ) {
99
99
exists ( MethodCall call , Method m |
100
100
m = call .getMethod ( ) and
101
101
call .getQualifier ( ) = toNode .asExpr ( ) and
@@ -111,7 +111,7 @@ private predicate updateCryptoOperationStep(DataFlow2::Node fromNode, DataFlow2:
111
111
}
112
112
113
113
/** Holds if `fromNode` to `toNode` is a dataflow step that creates a hash. */
114
- private predicate createMessageDigestStep ( DataFlow2 :: Node fromNode , DataFlow2 :: Node toNode ) {
114
+ private predicate createMessageDigestStep ( DataFlow :: Node fromNode , DataFlow :: Node toNode ) {
115
115
exists ( MethodCall ma , Method m | m = ma .getMethod ( ) |
116
116
m .getDeclaringType ( ) .hasQualifiedName ( "java.security" , "MessageDigest" ) and
117
117
m .hasStringSignature ( "digest()" ) and
@@ -135,7 +135,7 @@ private predicate createMessageDigestStep(DataFlow2::Node fromNode, DataFlow2::N
135
135
}
136
136
137
137
/** Holds if `fromNode` to `toNode` is a dataflow step that updates a hash. */
138
- private predicate updateMessageDigestStep ( DataFlow2 :: Node fromNode , DataFlow2 :: Node toNode ) {
138
+ private predicate updateMessageDigestStep ( DataFlow :: Node fromNode , DataFlow :: Node toNode ) {
139
139
exists ( MethodCall ma , Method m | m = ma .getMethod ( ) |
140
140
m .hasQualifiedName ( "java.security" , "MessageDigest" , "update" ) and
141
141
ma .getArgument ( 0 ) = fromNode .asExpr ( ) and
@@ -154,7 +154,7 @@ private module UserInputInCryptoOperationConfig implements DataFlow::ConfigSig {
154
154
exists ( ProduceCryptoCall call | call .getQualifier ( ) = sink .asExpr ( ) )
155
155
}
156
156
157
- predicate isAdditionalFlowStep ( DataFlow2 :: Node fromNode , DataFlow2 :: Node toNode ) {
157
+ predicate isAdditionalFlowStep ( DataFlow :: Node fromNode , DataFlow :: Node toNode ) {
158
158
updateCryptoOperationStep ( fromNode , toNode )
159
159
or
160
160
createMessageDigestStep ( fromNode , toNode )
0 commit comments