Traefik X-Forwarded Headers - Hop-by-Hop Header Manipulation
Title source: manualExploitation Summary
EIP tracks 1 public exploit for CVE-2024-45410. PoCs published by jphetphoumy.
AI-analyzed exploit summary This repository contains a functional PoC for CVE-2024-45410, demonstrating an authentication bypass via manipulation of hop-by-hop headers (e.g., X-Forwarded-Host) in Traefik. The Flask backend checks for a trusted host header, which can be bypassed using crafted HTTP headers.
Description
Traefik is a golang, Cloud Native Application Proxy. When a HTTP request is processed by Traefik, certain HTTP headers such as X-Forwarded-Host or X-Forwarded-Port are added by Traefik before the request is routed to the application. For a HTTP client, it should not be possible to remove or modify these headers. Since the application trusts the value of these headers, security implications might arise, if they can be modified. For HTTP/1.1, however, it was found that some of theses custom headers can indeed be removed and in certain cases manipulated. The attack relies on the HTTP/1.1 behavior, that headers can be defined as hop-by-hop via the HTTP Connection header. This issue has been addressed in release versions 2.11.9 and 3.1.3. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Exploits (1)
This repository contains a functional PoC for CVE-2024-45410, demonstrating an authentication bypass via manipulation of hop-by-hop headers (e.g., X-Forwarded-Host) in Traefik. The Flask backend checks for a trusted host header, which can be bypassed using crafted HTTP headers.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H