OkHttp Certificate Pinning Vulnerability!
Bad news. When I added certificate pinning in OkHttp 2.1, I didn’t sanitize the server’s certificate chain. An attacker could exploit this weakness to defeat the protection offered by certificate pinning. The vulnerability was disclosed to Square by security researcher John Kozyrakis. Whew! We fixed it in…