GHSA-jj94-6f5c-65r8

Suggest an improvement
Source
https://github.com/advisories/GHSA-jj94-6f5c-65r8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/09/GHSA-jj94-6f5c-65r8/GHSA-jj94-6f5c-65r8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jj94-6f5c-65r8
Aliases
Published
2024-09-19T16:08:38Z
Modified
2024-09-26T18:57:35.112925Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
  • 7.4 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
ZITADEL Allows Unauthorized Access After Organization or Project Deactivation
Details

Summary

In Zitadel, even after an organization is deactivated, associated projects, respectively their applications remain active. Users across other organizations can still log in and access through these applications, leading to unauthorized access. Additionally, if a project was deactivated access to applications was also still possible.

Details

The issue stems from the fact that when an organization is deactivated in Zitadel, the applications associated with it do not automatically deactivate. The application lifecycle is not tightly coupled with the organization's lifecycle, leading to a situation where the organization or project is marked as inactive, but its resources remain accessible.

PoC

  • Create a new Organization, create new project and setup OpenID connect.
  • Deactivate an Organization
  • Setup authentication without selecting Check for Project on Authentication
  • User is able to login despite the organization is deactivated

Impact

This vulnerability allows for unauthorized access to projects and their resources, which should have been restricted post-organization deactivation.

Patches

2.x versions are fixed on >= 2.62.1 2.61.x versions are fixed on >= 2.61.1 2.60.x versions are fixed on >= 2.60.2 2.59.x versions are fixed on >= 2.59.3 2.58.x versions are fixed on >= 2.58.5 2.57.x versions are fixed on >= 2.57.5 2.56.x versions are fixed on >= 2.56.6 2.55.x versions are fixed on >= 2.55.8 2.54.x versions are fixed on >= 2.54.10

Workaround

Unpatched versions can explicitly disable the application to make sure the client is not allowed anymore.

Questions

If you have any questions or comments about this advisory, please email us at security@zitadel.com

Credits

Thanks to @prdp1137 for reporting this!

References

Affected packages

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.62.0
Fixed
2.62.1

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.61.0
Fixed
2.61.1

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.60.0
Fixed
2.60.2

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.59.0
Fixed
2.59.3

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.58.0
Fixed
2.58.5

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.57.0
Fixed
2.57.5

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.56.0
Fixed
2.56.6

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.55.0
Fixed
2.55.8

Go / github.com/zitadel/zitadel/v2

Package

Name
github.com/zitadel/zitadel/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/zitadel/zitadel/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.54.10