MendDemo-josh / java-sec-code2

Java web common vulnerabilities and security code which is base on springboot and spring security
0 stars 0 forks source link

okhttp-2.5.0.jar: 2 vulnerabilities (highest severity is: 5.9) reachable #11

Open mend-for-github-com[bot] opened 9 months ago

mend-for-github-com[bot] commented 9 months ago
Vulnerable Library - okhttp-2.5.0.jar

An HTTP+SPDY client for Android and Java applications

Library home page: https://github.com/square/okhttp

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/squareup/okhttp/okhttp/2.5.0/okhttp-2.5.0.jar

Vulnerabilities

CVE Severity CVSS Exploit Maturity EPSS Dependency Type Fixed in (okhttp version) Remediation Possible** Reachability
CVE-2016-2402 Medium 5.9 Not Defined 0.1% okhttp-2.5.0.jar Direct 2.7.4

Reachable

CVE-2023-3635 Medium 5.9 Not Defined 0.1% okio-1.6.0.jar Transitive N/A*

Unreachable

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2016-2402 ### Vulnerable Library - okhttp-2.5.0.jar

An HTTP+SPDY client for Android and Java applications

Library home page: https://github.com/square/okhttp

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/squareup/okhttp/okhttp/2.5.0/okhttp-2.5.0.jar

Dependency Hierarchy: - :x: **okhttp-2.5.0.jar** (Vulnerable Library)

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` org.joychou.util.HttpUtils (Application) -> com.squareup.okhttp.OkHttpClient (Extension) -> ❌ com.squareup.okhttp.CertificatePinner (Vulnerable Component) ```

### Vulnerability Details

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.

Publish Date: 2017-01-30

URL: CVE-2016-2402

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

### CVSS 3 Score Details (5.9)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: High - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2402

Release Date: 2017-01-30

Fix Resolution: 2.7.4

In order to enable automatic remediation, please create workflow rules

CVE-2023-3635 ### Vulnerable Library - okio-1.6.0.jar

A modern I/O API for Java

Library home page: https://github.com/square/okio

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/squareup/okio/okio/1.6.0/okio-1.6.0.jar

Dependency Hierarchy: - okhttp-2.5.0.jar (Root Library) - :x: **okio-1.6.0.jar** (Vulnerable Library)

Found in base branch: master

### Reachability Analysis

The vulnerable code is unreachable

### Vulnerability Details

GzipSource does not handle an exception that might be raised when parsing a malformed gzip buffer. This may lead to denial of service of the Okio client when handling a crafted GZIP archive, by using the GzipSource class.

Publish Date: 2023-07-12

URL: CVE-2023-3635

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

### CVSS 3 Score Details (5.9)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2023-3635

Release Date: 2023-07-12

Fix Resolution: com.squareup.okio:okio-jvm:3.4.0


In order to enable automatic remediation for this issue, please create workflow rules