File tree Expand file tree Collapse file tree
java/ql/src/experimental/Security/CWE/CWE-297 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 */
1212
1313import 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
2215
2316/** A `HostnameVerifier.verify()` call that is not wrapped in another `HostnameVerifier`. */
2417private class HostnameVerificationCall extends MethodAccess {
2518 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
2821 }
2922
3023 /** Holds if the result of the call is not used. */
You can’t perform that action at this time.
0 commit comments