Skip to content
Open redirect Advisory Beginner CVE-2020-15129

GHSL-2020-140: Open redirect in Traefik - CVE-2020-15129

The Traefik API dashboard did not validate the X-Forwarded-Prefix header, allowing an attacker to redirect users to an arbitrary external site. This could be used to trick victims into disclosing sensitive information.

ghsecuritylab Follow

Originally disclosed on GitHub Security Lab

There exists a potential open redirect vulnerability in Traefik’s handling of the X-Forwarded-Prefix header. Active Exploitation of this issue is unlikely as it would require active header injection, however the Traefik team may want to address this issue nonetheless to prevent abuse in e.g. cache poisoning scenarios.

ghsecuritylab, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The dashboard component failed to validate that the X-Forwarded-Prefix header value is a site-relative path before using it in a redirect.

Impact

A successful exploitation of an open redirect can be used to entice victims to disclose sensitive information, though active exploitation is unlikely as it would require active header injection.

What the attacker needed

Ability to inject X-Forwarded-Prefix header

The fix

The issue was fixed by the vendor, who published patches and a security advisory.

How it was found

  1. Send a request to the Traefik dashboard with a Host header and an X-Forwarded-Prefix header set to an external URL.
  2. Observe that the response redirects to the external URL.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

An open redirect is when a website sends you to another site without checking if that site is safe. Here, the dashboard trusted a special header that tells it where to redirect, so an attacker could set that header to a malicious site and trick users into visiting it.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by ghsecuritylab

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.