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.
: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.
CVE-2023-34036 - Medium Severity Vulnerability
Vulnerable Library - spring-hateoas-1.5.4.jar
Library to support implementing representations for hyper-text driven REST web services.
Library home page: https://github.com/spring-projects/spring-hateoas
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/hateoas/spring-hateoas/1.5.4/spring-hateoas-1.5.4.jar
Dependency Hierarchy: - spring-boot-starter-hateoas-2.7.13.jar (Root Library) - :x: **spring-hateoas-1.5.4.jar** (Vulnerable Library)
Found in HEAD commit: ddbf982f54a01dcec86cab13425f8047dcb250f3
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-hateoas): 2.7.14
Step up your Open Source Security Game with Mend here