Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-34036 EUVD-2023-1992GHSA-7m5c-fgwf-mwph

Forwarded header exploit with Spring HATEOAS on WebFlux

Published Jul 17, 2023 · Updated Oct 30, 2024 · Assigned by vmware

Description

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.

Affected products

VendorProductAffectedFixed
Spring Spring HATEOAS 1.5.4 or older, 2.0.4 or older, 2.1.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework.hateoas:spring-hateoas < 1.5.5 1.5.5 GHSA-7m5c-fgwf-mwph
Maven org.springframework.hateoas:spring-hateoas >= 2.0.0, < 2.0.5 2.0.5 GHSA-7m5c-fgwf-mwph
Maven org.springframework.hateoas:spring-hateoas >= 2.1.0, < 2.1.1 2.1.1 GHSA-7m5c-fgwf-mwph

References