Find clear-text protocols

Proprietary

Finds connections that send data unencrypted (CWE-319): Apache Commons Net's FTPClient, SMTPClient and TelnetClient, OkHttp's ConnectionSpec.CLEARTEXT passed to OkHttpClient.Builder#connectionSpecs or new ConnectionSpec.Builder(..), and an Android WebSettings allowing mixed content with setMixedContentMode(MIXED_CONTENT_ALWAYS_ALLOW). Anyone on the network path can read and change what is sent. Use FTPSClient, SMTPSClient, SSH, HTTPS or MIXED_CONTENT_NEVER_ALLOW instead. Test sources are not searched.

org.openrewrite.java.security.search.FindClearTextProtocol
mod run . --recipe=org.openrewrite.java.security.search.FindClearTextProtocol

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