billmcchesney1 / pacbot

PacBot (Policy as Code Bot)
https://tmobile.github.io/pacbot/
Apache License 2.0
0 stars 0 forks source link

CVE-2023-34036 (Medium) detected in spring-hateoas-0.25.0.RELEASE.jar #442

Open mend-for-github-com[bot] opened 1 year ago

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

CVE-2023-34036 - Medium Severity Vulnerability

Vulnerable Library - spring-hateoas-0.25.0.RELEASE.jar

Library to support implementing representations for hyper-text driven REST web services.

Library home page: http://www.spring.io

Path to dependency file: /api/pacman-api-admin/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/hateoas/spring-hateoas/0.25.0.RELEASE/spring-hateoas-0.25.0.RELEASE.jar

Dependency Hierarchy: - spring-boot-starter-data-rest-2.0.4.RELEASE.jar (Root Library) - spring-data-rest-webmvc-3.0.9.RELEASE.jar - spring-data-rest-core-3.0.9.RELEASE.jar - :x: **spring-hateoas-0.25.0.RELEASE.jar** (Vulnerable Library)

Found in HEAD commit: acf9a0620c1a37cee4f2896d71e1c3731c5c7b06

Found in base branch: master

Vulnerability Details

Reactive web applications that use Spring HATEOAS to produce hypermedia-based responses might be exposed to malicious forwarded headers if they are not behind a trusted proxy that ensures correctness of such headers, or if they don't have anything else in place to handle (and possibly discard) forwarded headers either in WebFlux or at the level of the underlying HTTP server. For the application to be affected, it needs to satisfy the following requirements: * It needs to use the reactive web stack (Spring WebFlux) and Spring HATEOAS to create links in hypermedia-based responses. * The application infrastructure does not guard against clients submitting (X-)Forwarded… headers.

Publish Date: 2023-07-17

URL: CVE-2023-34036

CVSS 3 Score Details (5.3)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-7m5c-fgwf-mwph

Release Date: 2023-07-17

Fix Resolution (org.springframework.hateoas:spring-hateoas): 1.5.5

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-data-rest): 2.7.9