CVE-2016-2402

MEDIUM

Squareup Okhttp < 2.7.3 - Improper Certificate Validation

Title source: rule

Description

OkHttp before 2.7.4 and 3.x before 3.1.2 allows man-in-the-middle attackers to bypass certificate pinning by sending a certificate chain with a certificate from a non-pinned trusted CA and the pinned certificate.

Exploits (2)

nomisec WORKING POC 13 stars
by ikoz · poc
https://github.com/ikoz/cert-pinning-flaw-poc
nomisec WORKING POC 10 stars
by ikoz · poc
https://github.com/ikoz/certPinningVulnerableOkHttp

Scores

CVSS v3 5.9
EPSS 0.0268
EPSS Percentile 85.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE
CWE-295
Status published

Affected Products (8)

squareup/okhttp < 2.7.3
squareup/okhttp3
squareup/okhttp3
squareup/okhttp3
squareup/okhttp3
squareup/okhttp3
com.squareup.okhttp3/okhttp < 2.7.4Maven
n/a/n/a

Timeline

Published Jan 30, 2017
Tracked Since Feb 18, 2026