Build, ship, and run secure software with minimal, hardened container images — rebuilt from source daily and guarded under our industry-leading remediation SLA.
Start for freeRabbitMQ Java client: TrustEverythingTrustManager used by default in useSslProtocol() enables MITM
com.rabbitmq.client.TrustEverythingTrustManager accepts ANY TLS certificate (including null chains) and is used as the default trust manager when calling ConnectionFactory.useSslProtocol() without arguments. Combined with hostname verification being disabled by default, this enables trivial man-in-the-middle attacks.
com.rabbitmq.client.TrustEverythingTrustManager — accepts any certificatecom.rabbitmq.client.ConnectionFactory.useSslProtocol() — uses TrustEverythingTrustManagerenableHostnameVerification() must be called explicitly)com.rabbitmq.client.ConnectionFactory.getPassword() — returns plaintext with no redactionTrustEverythingTrustManager accepts it → all RabbitMQ traffic interceptedgetPassword() returns plaintext → credentials in logs/stack tracesTrustEverythingTrustManager — it should never be used in productionuseSslProtocol() should use the JVM default trust store, not TrustEverythinggetPassword() or remove the public getter