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
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
- https://github.com/containous/traefik/blob/8f2951b275d88312a1add5084fa985e5d878be7a/pkg/api/dashboard.go#L27
CVE
- CVE-2020-15129
Coordinated Disclosure Timeline
- 07/27/2020: vendor contacted
- 07/30/2020: vendor publishes patches and GHSA
Resources
- https://github.com/containous/traefik/security/advisories/GHSA-6qq8-5wq3-86rp
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.