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

fastjson-1.2.24.jar: 2 vulnerabilities (highest severity is: 9.8) reachable #20

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

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

Fastjson is a JSON processor (JSON parser + JSON generator) written in Java

Library home page: https://github.com/alibaba

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/alibaba/fastjson/1.2.24/fastjson-1.2.24.jar

Vulnerabilities

CVE Severity CVSS Exploit Maturity EPSS Dependency Type Fixed in (fastjson version) Remediation Possible** Reachability
CVE-2017-18349 Critical 9.8 High 80.0% fastjson-1.2.24.jar Direct 1.2.25

Reachable

CVE-2022-25845 High 8.1 Proof of concept 2.2% fastjson-1.2.24.jar Direct 1.2.50_noneautotype

Reachable

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

Details

CVE-2017-18349 ### Vulnerable Library - fastjson-1.2.24.jar

Fastjson is a JSON processor (JSON parser + JSON generator) written in Java

Library home page: https://github.com/alibaba

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/alibaba/fastjson/1.2.24/fastjson-1.2.24.jar

Dependency Hierarchy: - :x: **fastjson-1.2.24.jar** (Vulnerable Library)

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` org.joychou.controller.Jsonp (Application) -> com.alibaba.fastjson.JSONObject (Extension) -> com.alibaba.fastjson.parser.ParserConfig (Extension) -> ❌ com.alibaba.fastjson.serializer.ObjectArrayCodec (Vulnerable Component) ```

### Vulnerability Details

parseObject in Fastjson before 1.2.25, as used in FastjsonEngine in Pippo 1.11.0 and other products, allows remote attackers to execute arbitrary code via a crafted JSON request, as demonstrated by a crafted rmi:// URI in the dataSourceName field of HTTP POST data to the Pippo /json URI, which is mishandled in AjaxApplication.java.

Publish Date: 2022-10-03

URL: CVE-2017-18349

### Threat Assessment

Exploit Maturity: High

EPSS: 80.0%

### CVSS 3 Score Details (9.8)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

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

Release Date: 2022-10-03

Fix Resolution: 1.2.25

In order to enable automatic remediation, please create workflow rules

CVE-2022-25845 ### Vulnerable Library - fastjson-1.2.24.jar

Fastjson is a JSON processor (JSON parser + JSON generator) written in Java

Library home page: https://github.com/alibaba

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/alibaba/fastjson/1.2.24/fastjson-1.2.24.jar

Dependency Hierarchy: - :x: **fastjson-1.2.24.jar** (Vulnerable Library)

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` org.joychou.controller.Jsonp (Application) -> com.alibaba.fastjson.JSONObject (Extension) -> ❌ com.alibaba.fastjson.parser.ParserConfig (Vulnerable Component) ```

### Vulnerability Details

The package com.alibaba:fastjson before 1.2.83 are vulnerable to Deserialization of Untrusted Data by bypassing the default autoType shutdown restrictions, which is possible under certain conditions. Exploiting this vulnerability allows attacking remote servers. Workaround: If upgrading is not possible, you can enable [safeMode](https://github.com/alibaba/fastjson/wiki/fastjson_safemode).

Publish Date: 2022-06-10

URL: CVE-2022-25845

### Threat Assessment

Exploit Maturity: Proof of concept

EPSS: 2.2%

### CVSS 3 Score Details (8.1)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2022-06-10

Fix Resolution: 1.2.50_noneautotype

In order to enable automatic remediation, please create workflow rules


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