Forwarded header exploit with Spring HATEOAS on WebFlux (Spring Spring HATEOAS)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.47 % · percentile 41 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- vmware
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-644 — Improper Neutralization of HTTP Headers for Scripting Syntax
- CWE-116 — Improper Encoding or Escaping of Output
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | vmware |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD · security@vmware.com (Secondary) |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-7m5c-fgwf-mwph — Spring HATEOAS vulnerable to Improper Neutralization of HTTP Headers for Scripting Syntax
European references
- ENISA EUVD · EUVD-2023-1992
- GCVE · GCVE-0-2023-34036
CERT-FR advisories
- CERTFR-2023-AVI-0551 — Vulnérabilité dans Spring HATEOAS · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:vmware:spring_hateoas:*:*:*:*:*:*:*:*< 1.5.5cpe:2.3:a:vmware:spring_hateoas:*:*:*:*:*:*:*:*≥ 2.0.0 < 2.0.5cpe:2.3:a:vmware:spring_hateoas:2.1.0:-:*:*:*:*:*:*cpe:2.3:a:vmware:spring_hateoas:2.1.0:milestone1:*:*:*:*:*:*cpe:2.3:a:vmware:spring_hateoas:2.1.0:rc1:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Spring · Spring HATEOAS | affected 1.5.4 or older ; affected 2.0.4 or older ; affected 2.1.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |