github.com/goharbor/harbor
Affected
- introduced
0, fixed2.9.5(semver)
Fixed versions
2.9.5
Fix
- Fixed version
2.9.5go get github.com/goharbor/[email protected]
Advisory
Also known as: BIT-harbor-2024-22278, CVE-2024-22278, GO-2024-3013
Harbor fails to validate the user permissions when updating project configurations
Impact
Harbor fails to validate the maintainer role permissions when creating/updating/deleting project configurations - API call:
By sending a request to create/update/delete a metadata with an name that belongs to a project that the currently authenticated and granted to the maintainer role user doesn’t have access to, the attacker could modify configurations in the current project.
BTW: the maintainer role in Harbor was intended for individuals who closely support the project admin in maintaining the project but lack configuration management permissions. However, the maintainer role can utilize the metadata API to circumvent this limitation. It's important to note that any potential attacker must be authenticated and granted a specific project maintainer role to modify configurations, limiting their scope to only that project.
Patches
Will be fixed in v2.9.5, v2.10.3 and v2.11.0
Workarounds
There are no workarounds available.
Credit
Thanks to Ravid Mazon([email protected]), Jay Chen ([email protected]) Palo Alto Networks for reporting this issue.
High Basis: The source's own band: HIGH
0, fixed 2.9.5 (semver)2.9.5
2.9.5go get github.com/goharbor/[email protected]2.10.0, fixed 2.10.3 (semver)2.10.3
2.10.3go get github.com/goharbor/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0