All rules →
Rules / Kotlin
SHIELD-KOTLIN-014

Trust-all TrustManager or HostnameVerifier disables TLS validation

criticalKotlinCWE-295CVSS 9.1

What it detects

An empty checkServerTrusted implementation or a HostnameVerifier that always returns true disables certificate validation and enables MITM.

How to fix

Perform full certificate and hostname validation; use certificate pinning for sensitive connections.

Scan your repo freeFull documentation
Back to all rules
SHIELD-KOTLIN-014: Trust-all TrustManager or HostnameVerifier disables TLS validation — Zennoxa Shield