amaybaum-dev / verademo2

A deliberately insecure Java web application
MIT License
0 stars 1 forks source link

commons-fileupload-1.3.2.jar: 3 vulnerabilities (highest severity is: 9.8) reachable - autoclosed #14

Closed dev-mend-for-github-com[bot] closed 1 year ago

dev-mend-for-github-com[bot] commented 1 year ago
Vulnerable Library - commons-fileupload-1.3.2.jar

The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications.

Library home page: http://commons.apache.org/proper/commons-fileupload/

Path to dependency file: /app/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/commons-fileupload/commons-fileupload/1.3.2/commons-fileupload-1.3.2.jar,/app/target/verademo/WEB-INF/lib/commons-fileupload-1.3.2.jar

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (commons-fileupload version) Remediation Possible** Reachability
CVE-2016-1000031 Critical 9.8 commons-fileupload-1.3.2.jar Direct 1.3.3

WS-2014-0034 High 7.5 commons-fileupload-1.3.2.jar Direct 1.4

CVE-2023-24998 High 7.5 commons-fileupload-1.3.2.jar Direct 1.5

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

Details

CVE-2016-1000031 ### Vulnerable Library - commons-fileupload-1.3.2.jar

The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications.

Library home page: http://commons.apache.org/proper/commons-fileupload/

Path to dependency file: /app/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/commons-fileupload/commons-fileupload/1.3.2/commons-fileupload-1.3.2.jar,/app/target/verademo/WEB-INF/lib/commons-fileupload-1.3.2.jar

Dependency Hierarchy: - :x: **commons-fileupload-1.3.2.jar** (Vulnerable Library)

Found in base branch: main

### Reachability Analysis

This vulnerability is potentially used ``` com.veracode.verademo.controller.UserController (Application) -> org.springframework.web.multipart.commons.CommonsMultipartFile (Extension) -> ❌ org.apache.commons.fileupload.disk.DiskFileItem (Vulnerable Component) ```

### Vulnerability Details

Apache Commons FileUpload before 1.3.3 DiskFileItem File Manipulation Remote Code Execution

Publish Date: 2016-10-25

URL: CVE-2016-1000031

### 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-2016-1000031

Release Date: 2016-10-25

Fix Resolution: 1.3.3

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
WS-2014-0034 ### Vulnerable Library - commons-fileupload-1.3.2.jar

The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications.

Library home page: http://commons.apache.org/proper/commons-fileupload/

Path to dependency file: /app/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/commons-fileupload/commons-fileupload/1.3.2/commons-fileupload-1.3.2.jar,/app/target/verademo/WEB-INF/lib/commons-fileupload-1.3.2.jar

Dependency Hierarchy: - :x: **commons-fileupload-1.3.2.jar** (Vulnerable Library)

Found in base branch: main

### Reachability Analysis

This vulnerability is potentially used ``` com.veracode.verademo.controller.UserController (Application) -> org.springframework.web.multipart.commons.CommonsMultipartResolver$1 (Extension) -> org.springframework.web.multipart.commons.CommonsMultipartResolver (Extension) -> ❌ org.apache.commons.fileupload.FileUploadBase (Vulnerable Component) ```

### Vulnerability Details

The class FileUploadBase in Apache Commons Fileupload before 1.4 has potential resource leak - InputStream not closed on exception.

Publish Date: 2014-02-17

URL: WS-2014-0034

### CVSS 3 Score Details (7.5)

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: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2014-02-17

Fix Resolution: 1.4

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-24998 ### Vulnerable Library - commons-fileupload-1.3.2.jar

The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications.

Library home page: http://commons.apache.org/proper/commons-fileupload/

Path to dependency file: /app/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/commons-fileupload/commons-fileupload/1.3.2/commons-fileupload-1.3.2.jar,/app/target/verademo/WEB-INF/lib/commons-fileupload-1.3.2.jar

Dependency Hierarchy: - :x: **commons-fileupload-1.3.2.jar** (Vulnerable Library)

Found in base branch: main

### Reachability Analysis

This vulnerability is potentially used ``` com.veracode.verademo.controller.UserController (Application) -> org.springframework.web.multipart.commons.CommonsMultipartResolver$1 (Extension) -> org.springframework.web.multipart.commons.CommonsMultipartResolver (Extension) -> ❌ org.apache.commons.fileupload.FileUploadBase (Vulnerable Component) ```

### Vulnerability Details

Apache Commons FileUpload before 1.5 does not limit the number of request parts to be processed resulting in the possibility of an attacker triggering a DoS with a malicious upload or series of uploads. Note that, like all of the file upload limits, the new configuration option (FileUploadBase#setFileCountMax) is not enabled by default and must be explicitly configured.

Publish Date: 2023-02-20

URL: CVE-2023-24998

### CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - 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://tomcat.apache.org/security-10.html

Release Date: 2023-02-20

Fix Resolution: 1.5

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.

dev-mend-for-github-com[bot] commented 1 year ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.