September 14, 2020

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

GitHub Security Lab Team

Summary

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.

Product

Traefik

Tested Version

v2.3.0-rc1

Details

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.

e.g.

$ curl --header 'Host:docker.localhost' --header 'X-Forwarded-Prefix:https://foo.nl' 'http://localhost:8081'
<a href="https://foo.nl/dashboard/">Found</a>.`

Impact

A successful exploitation of an open redirect can be used to entice victims to disclose sensitive information.

Resources

CVE

  • CVE-2020-15129

Coordinated Disclosure Timeline

  • 07/27/2020: vendor contacted
  • 07/30/2020: vendor publishes patches and GHSA

Resources

Credit

This issue was found by the GitHub Application Security Team and reported on behalf of the GHAS by the GitHub Security Lab Team.

Contact

You can contact the GHSL team at securitylab@github.com, please include GHSL-2020-140 in any communication regarding this issue.