Open Redirect Affecting github.com/traefik/traefik/v2/pkg/middlewares/forwardedheaders package, versions <2.11.14


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMTRAEFIKTRAEFIKV2PKGMIDDLEWARESFORWARDEDHEADERS-8445272
  • published1 Dec 2024
  • disclosed29 Nov 2024
  • creditkunte0

Introduced: 29 Nov 2024

CVE-2024-52003  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade github.com/traefik/traefik/v2/pkg/middlewares/forwardedheaders to version 2.11.14 or higher.

Overview

Affected versions of this package are vulnerable to Open Redirect via the X-Forwarded-Prefix header due to improper input validation.

PoC

curl -v 'http://traefik.localhost' -H 'X-Forwarded-Prefix: %0d//a.com'
[...]
> HTTP/1.1 302 Found
> Location: //a.com/dashboard/

CVSS Scores

version 4.0
version 3.1