CVE-2020-15129 Open redirect in Traefik

Medium 6.1 Published Updated

Traefik's API dashboard allows open redirects via the X-Forwarded-Prefix header, potentially exposing users to phishing or cache poisoning attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-15129?

CVE-2020-15129 is a medium-severity vulnerability in Traefik Traefik, published on 30 Jul 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In Traefik before versions 1.7.26, 2.2.8, and 2.3.0-rc3, there exists a potential open redirect vulnerability in Traefik's handling of the "X-Forwarded-Prefix" header. The Traefik API dashboard component doesn't validate that the value of the header "X-Forwarded-Prefix" is a site relative path and will redirect to any header provided URI. Successful exploitation of an open redirect can be used to entice victims to disclose sensitive information. Active Exploitation of this issue is unlikely as it would require active header injection, however the Traefik team addressed this issue nonetheless to prevent abuse in e.g. cache poisoning scenarios.

Weakness: CWE-601

Which versions are affected by CVE-2020-15129?

24 open source packages ship an affected version, including github.com/containous/traefik/v2, github.com/containous/traefik and github.com/containous/traefik/api. It affects 1 product.

PackageAffectedFixed in
github.com/containous/traefik/v2 GoAll versions2.2.8
github.com/containous/traefik/v2 GoAll versions2.2.8
github.com/containous/traefik/v2 GoFrom 2.3.0-rc12.3.0-rc3
github.com/containous/traefik/v2 GoFrom 2.3.0-rc12.3.0-rc3
github.com/containous/traefik GoFrom 1.5.0-rc51.7.26
github.com/containous/traefik GoFrom 1.5.0-rc51.7.26
18 more packages
github.com/containous/traefik/api GoFrom 1.5.0-rc51.7.26
github.com/containous/traefik/api GoFrom 1.5.0-rc51.7.26
github.com/containous/traefik/v2/pkg/api GoAll versions2.2.8
github.com/containous/traefik/v2/pkg/api GoAll versions2.2.8
github.com/containous/traefik/v2/pkg/api GoFrom 2.3.0-rc12.3.0-rc3
github.com/containous/traefik/v2/pkg/api GoFrom 2.3.0-rc12.3.0-rc3
github.com/traefik/traefik GoFrom 1.5.0-rc51.7.26
github.com/traefik/traefik GoFrom 1.5.0-rc51.7.26
github.com/traefik/traefik/api GoFrom 1.5.0-rc51.7.26
github.com/traefik/traefik/api GoFrom 1.5.0-rc51.7.26
github.com/traefik/traefik/v2 GoAll versions2.3.0-rc6
github.com/traefik/traefik/v2 GoAll versions2.3.0-rc6
github.com/traefik/traefik/v2 GoFrom 2.3.0-rc12.3.0-rc6
github.com/traefik/traefik/v2 GoFrom 2.3.0-rc12.3.0-rc6
github.com/traefik/traefik/v2/pkg/api GoAll versions2.3.0-rc6
github.com/traefik/traefik/v2/pkg/api GoAll versions2.3.0-rc6
github.com/traefik/traefik/v2/pkg/api GoFrom 2.3.0-rc12.3.0-rc6
github.com/traefik/traefik/v2/pkg/api GoFrom 2.3.0-rc12.3.0-rc6

Products include Traefik Traefik.

How do I fix CVE-2020-15129?

Upgrade github.com/containous/traefik/v2 to a fixed version for your release line: 2.2.8 or 2.3.0-rc3.

Is CVE-2020-15129 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-15129 exists.

Public exploit code: 1 Nuclei template.

All Traefik Traefik vulnerabilities

Sources

Also known as GHSA-6qq8-5wq3-86rp.

Is CVE-2020-15129 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free