Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/vulndb: potential Go vuln in zotregistry.dev/zot: GHSA-c9p4-xwr9-rfhx #3409

Open
GoVulnBot opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@GoVulnBot
Copy link

Advisory GHSA-c9p4-xwr9-rfhx references a vulnerability in the following Go modules:

Module
zotregistry.dev/zot

Description:

Summary

The group data stored for users in the boltdb database (meta.db) is an append-list so group revocations/removals are ignored in the API.

Details

SetUserGroups is alled on login, but instead of replacing the group memberships, they are appended. This may be due to some conflict with the group definitions in the config file, but that wasn't obvious to me if it were the case.

PoC

Login with group claims, logout, remove the user from a group from at IdP and log ...

References:

Cross references:

See doc/quickstart.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: zotregistry.dev/zot
      non_go_versions:
        - introduced: TODO (earliest fixed "2.1.2", vuln range "<= 2.1.1")
      vulnerable_at: 1.4.3
summary: Zot IdP group membership revocation ignored in zotregistry.dev/zot
cves:
    - CVE-2025-23208
ghsas:
    - GHSA-c9p4-xwr9-rfhx
references:
    - advisory: https://github.com/advisories/GHSA-c9p4-xwr9-rfhx
    - advisory: https://github.com/project-zot/zot/security/advisories/GHSA-c9p4-xwr9-rfhx
    - fix: https://github.com/project-zot/zot/commit/002ac62d8a15bf0cba010b3ba7bde86f9837b613
source:
    id: GHSA-c9p4-xwr9-rfhx
    created: 2025-01-17T23:01:24.931903816Z
review_status: UNREVIEWED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant