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.

INFO

Published Date :

Jan. 30, 2017, 10:59 p.m.

Last Modified :

Nov. 21, 2024, 2:48 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.2
Public PoC/Exploit Available at Github

CVE-2016-2402 has a 15 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2016-2402 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Squareup okhttp
2 Squareup okhttp3

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Shell

Updated: 7 months ago
0 stars 1 fork 1 watcher
Born at : May 2, 2024, 9:30 p.m. This repo has been linked 73 different CVEs too.

None

Shell

Updated: 7 months ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:29 p.m. This repo has been linked 73 different CVEs too.

None

Shell

Updated: 7 months ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:27 p.m. This repo has been linked 73 different CVEs too.

None

Shell

Updated: 7 months ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:26 p.m. This repo has been linked 73 different CVEs too.

None

Shell

Updated: 6 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:24 p.m. This repo has been linked 73 different CVEs too.

None

Updated: 6 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:22 p.m. This repo has been linked 73 different CVEs too.

None

Updated: 6 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:21 p.m. This repo has been linked 73 different CVEs too.

None

Updated: 6 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:19 p.m. This repo has been linked 73 different CVEs too.

None

Updated: 6 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:18 p.m. This repo has been linked 73 different CVEs too.

None

Updated: 6 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:16 p.m. This repo has been linked 73 different CVEs too.

None

Updated: 6 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 2, 2024, 9:14 p.m. This repo has been linked 73 different CVEs too.

An analysis on open-source Android apps intended to learn if they are harmed by vulnerable dependencies 🔒

gradle cli security supply-chain-analytics python

Python Shell

Updated: 2 years, 10 months ago
8 stars 2 fork 2 watcher
Born at : June 4, 2020, 9:48 p.m. This repo has been linked 15 different CVEs too.

Testing Vulnerable libraries in Xamarin Project - using OWASP dependency-check and SafeNuGet

C# Java

Updated: 7 years, 5 months ago
0 stars 0 fork 0 watcher
Born at : July 13, 2017, 3:48 a.m. This repo has been linked 1 different CVEs too.

OkHttp sample app vulnerable to CVE-2016-2402

Java

Updated: 6 years ago
10 stars 3 fork 3 watcher
Born at : March 30, 2016, 11:45 p.m. This repo has been linked 1 different CVEs too.

Simple script for testing CVE-2016-2402 and similar flaws

Python

Updated: 5 years, 7 months ago
13 stars 5 fork 5 watcher
Born at : March 20, 2016, 6:04 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2016-2402 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-2402 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2016/02/10/8
    Added Reference http://www.openwall.com/lists/oss-security/2016/02/18/7
    Added Reference https://koz.io/pinning-cve-2016-2402/
    Added Reference https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E
    Added Reference https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference MITRE https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E [No types assigned]
    Removed Reference MITRE https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E
  • Modified Analysis by [email protected]

    Feb. 01, 2021

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E No Types Assigned https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E Mailing List, Third Party Advisory
  • CVE Modified by [email protected]

    Dec. 16, 2020

    Action Type Old Value New Value
    Added Reference https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E [No Types Assigned]
  • Reanalysis by [email protected]

    Nov. 15, 2017

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:square:okhttp:*:*:*:*:*:*:*:* versions up to (including) 2.7.3 *cpe:2.3:a:square:okhttp:3.0.0:*:*:*:*:*:*:* *cpe:2.3:a:square:okhttp:3.0.0:rc1:*:*:*:*:*:* *cpe:2.3:a:square:okhttp:3.0.1:*:*:*:*:*:*:* *cpe:2.3:a:square:okhttp:3.1.0:*:*:*:*:*:*:* *cpe:2.3:a:square:okhttp:3.1.1:*:*:*:*:*:*:* OR *cpe:2.3:a:squareup:okhttp:*:*:*:*:*:*:*:* versions up to (including) 2.7.3 *cpe:2.3:a:squareup:okhttp3:3.0.0:*:*:*:*:*:*:* *cpe:2.3:a:squareup:okhttp3:3.0.0:rc1:*:*:*:*:*:* *cpe:2.3:a:squareup:okhttp3:3.0.1:*:*:*:*:*:*:* *cpe:2.3:a:squareup:okhttp3:3.1.0:*:*:*:*:*:*:* *cpe:2.3:a:squareup:okhttp3:3.1.1:*:*:*:*:*:*:*
  • Initial Analysis by [email protected]

    Feb. 28, 2017

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
    Added CVSS V3 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/ No Types Assigned https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/ Vendor Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/02/10/8 No Types Assigned http://www.openwall.com/lists/oss-security/2016/02/10/8 Third Party Advisory, Mailing List
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/02/18/7 No Types Assigned http://www.openwall.com/lists/oss-security/2016/02/18/7 Third Party Advisory, Mailing List
    Changed Reference Type https://koz.io/pinning-cve-2016-2402/ No Types Assigned https://koz.io/pinning-cve-2016-2402/ Third Party Advisory, Technical Description
    Added CWE CWE-295
    Added CPE Configuration OR *cpe:2.3:a:square:okhttp:2.7.3:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:square:okhttp:3.0.0:*:*:*:*:*:*:* *cpe:2.3:a:square:okhttp:3.0.0:rc1:*:*:*:*:*:* *cpe:2.3:a:square:okhttp:3.0.1:*:*:*:*:*:*:* *cpe:2.3:a:square:okhttp:3.1.0:*:*:*:*:*:*:* *cpe:2.3:a:square:okhttp:3.1.1:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2016-2402 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2016-2402 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.08 }} -0.00%

score

0.35940

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability