File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
java/ql/src/experimental/Security/CWE/CWE-297 Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
13
13
import java
14
-
15
- /** The `HostnameVerifier.verify()` method. */
16
- private class HostnameVerifierVerifyMethod extends Method {
17
- HostnameVerifierVerifyMethod ( ) {
18
- this .getDeclaringType ( ) .getASupertype * ( ) .hasQualifiedName ( "javax.net.ssl" , "HostnameVerifier" ) and
19
- this .hasStringSignature ( "verify(String, SSLSession)" )
20
- }
21
- }
14
+ import semmle.code.java.security.Encryption
22
15
23
16
/** A `HostnameVerifier.verify()` call that is not wrapped in another `HostnameVerifier`. */
24
17
private class HostnameVerificationCall extends MethodAccess {
25
18
HostnameVerificationCall ( ) {
26
- this .getMethod ( ) instanceof HostnameVerifierVerifyMethod and
27
- not this .getCaller ( ) instanceof HostnameVerifierVerifyMethod
19
+ this .getMethod ( ) instanceof HostnameVerifierVerify and
20
+ not this .getCaller ( ) instanceof HostnameVerifierVerify
28
21
}
29
22
30
23
/** Holds if the result of the call is not used. */
You can’t perform that action at this time.
0 commit comments