Find HostnameVerifier { _, _ -> true } lambdas

Proprietary

A HostnameVerifier that returns true accepts a certificate for any hostname — defeats the purpose of TLS hostname pinning and enables straightforward MITM. Verify the hostname against the cert's CN/SAN, or use the platform default verifier.

org.openrewrite.kotlin.security.FindAllowAllHostnameVerifierLambda$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindAllowAllHostnameVerifierLambda$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.