Improper Privilege Management Affecting github.com/zitadel/zitadel/internal/api/http package, versions <2.44.3>=2.45.0 <2.45.1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.05% (25th percentile)

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 Learn

Learn about Improper Privilege Management vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMZITADELZITADELINTERNALAPIHTTP-6421864
  • published12 Mar 2024
  • disclosed11 Mar 2024
  • creditamit-laish

Introduced: 11 Mar 2024

CVE-2024-28197  (opens in a new tab)
CWE-269  (opens in a new tab)

How to fix?

Upgrade github.com/zitadel/zitadel/internal/api/http to version 2.44.3, 2.45.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Privilege Management during the handling of a cookie for user agent (browser) and user sessions identification. Although the cookie is managed according to best practices, it is accessible on subdomains of the instance, allowing an attacker to exploit this by providing a malicious link hosted on the subdomain.

This could lead to unauthorized access to the victim's account under certain conditions.

Note:

The exploit requires the victim to log in through the malicious link, and success is contingent upon the presence of an initial vulnerability on the subdomain, such as the attacker's ability to control DNS or an existing XSS vulnerability in an application hosted on the subdomain.

Workaround

This vulnerability can be mitigated by preventing the setting of the __Secure-zitadel-useragent cookie on subdomains of the instance, for example, within a Web Application Firewall (WAF).

CVSS Scores

version 3.1