Improper Authorization Affecting github.com/kcp-dev/kcp/pkg/authorization/bootstrap package, versions <0.26.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMKCPDEVKCPPKGAUTHORIZATIONBOOTSTRAP-8496751
  • published12 Dec 2024
  • disclosed11 Dec 2024
  • creditUnknown

Introduced: 11 Dec 2024

New CVE NOT AVAILABLE CWE-285  (opens in a new tab)

How to fix?

Upgrade github.com/kcp-dev/kcp/pkg/authorization/bootstrap to version 0.26.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authorization due to the impersonate verb. An attacker can gain unauthorized access to global administrative groups by exploiting the impersonation feature, which is intended for users with high privilege levels such as cluster-admin.

Workaround

This vulnerability can be mitigated by not assigning the cluster-admin role or any other role granting blanket impersonation permissions to users. Additionally, implementing a reverse proxy to check for the Impersonate-Group header and reject requests impersonating global administrative groups can further secure the system.

CVSS Scores

version 4.0
version 3.1