OkHttp TLS interception via CertificatePinner trailing-dot hostname handling
Square OkHttp
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Square OkHttp |
| No fix yet |
Original description
OkHttp through 5.5.1 contains an improper certificate validation vulnerability in CertificatePinner that skips pin checks because Pin.matchesHostname does not normalize trailing-dot hostnames. Network attackers with a CA-trusted certificate not matching configured pins can intercept or modify TLS traffic when applications request the trailing-dot form of pinned hosts.
From the CVE record · VulnCheck