Lucene search

K
githubGitHub Advisory DatabaseGHSA-6QQ8-5WQ3-86RP
HistoryFeb 11, 2022 - 11:19 p.m.

Traefik vulnerable to Open Redirect via handling of X-Forwarded-Prefix header

2022-02-1123:19:21
CWE-601
GitHub Advisory Database
github.com
24

4 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

HIGH

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:H/Au:N/C:P/I:P/A:N

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N

0.011 Low

EPSS

Percentile

84.6%

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 addressed this issue nonetheless to prevent abuse in e.g. cache poisoning scenarios.

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:traefik.localhost' --header 'X-Forwarded-Prefix:https://example.org' 'http://localhost:8081'
<a href="https://example.org/dashboard/">Found</a>.`

Impact

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

Workarounds

By using the headers middleware, the request header X-Forwarded-Prefix value can be overridden by the value . (dot)

For more information

If you have any questions or comments about this advisory, open an issue in Traefik.

Credit

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

Affected configurations

Vulners
Node
containoustraefikRange<2.3.0-rc3
OR
containoustraefikRange<2.2.8
OR
containoustraefikRange<1.7.26
OR
traefiktraefikRange<2.3.0-rc3
OR
traefiktraefikRange<2.2.8
OR
traefiktraefikRange<1.7.26
OR
containoustraefikRange<2.3.0-rc3
OR
traefiktraefikRange<2.3.0-rc3
OR
containoustraefikRange<2.2.8
OR
containoustraefikRange<1.7.26
OR
traefiktraefikRange<2.2.8
OR
traefiktraefikRange<1.7.26

4 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

HIGH

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:H/Au:N/C:P/I:P/A:N

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N

0.011 Low

EPSS

Percentile

84.6%