Lucene search

K
githubGitHub Advisory DatabaseGHSA-4FC7-HC63-7FJG
HistoryMay 02, 2022 - 7:33 p.m.

Exposure of repository credentials to external third-party sources in Rancher

2022-05-0219:33:34
CWE-200
CWE-522
CWE-863
GitHub Advisory Database
github.com
26

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

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

0.002 Low

EPSS

Percentile

51.4%

Impact

This issue only happens when the user configures access credentials to a private repository in Rancher inside Apps & Marketplace > Repositories. It affects Rancher versions 2.5.0 up to and including 2.5.11 and from 2.6.0 up to and including 2.6.2.

An insufficient check of the same-origin policy when downloading Helm charts from a configured private repository can lead to exposure of the repository credentials to a third-party provider. This exposure happens when the private repository:

  1. Does an HTTP redirect to a third-party repository or external storage provider.
  2. Downloads an icon resource for the chart hosted on a third-party provider.

The address of the private repository is not leaked, only the credentials are leaked in the HTTP Authorization header in base64 format.

With the patched versions, the default behavior now is to only send the private repository credentials when subdomain or domain hostname match when following the redirect or downloading external resources.

Patches

Patched versions include releases 2.5.12, 2.6.3 and later versions.

Workarounds

  1. Update Rancher to a patched version.
  2. Check the Helm charts in your configured private repository for possible redirects to third-party storage, and for Helm chart icons from third-party sources.
  3. Evaluate any Helm chart that might lead to the mentioned scenario and change affected credentials if deemed necessary.

References

Information about the same-origin check and how to disable it is available in Rancher documentation.

For more information

If you have any questions or comments about this advisory:

Affected configurations

Vulners
Node
rancherrancherRange<2.5.12
OR
rancherrancherRange<2.6.3

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

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

0.002 Low

EPSS

Percentile

51.4%

Related for GHSA-4FC7-HC63-7FJG