GHSA-3637-v6vq-xqqw

Suggest an improvement
Source
https://github.com/advisories/GHSA-3637-v6vq-xqqw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-3637-v6vq-xqqw/GHSA-3637-v6vq-xqqw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3637-v6vq-xqqw
Aliases
Published
2022-09-16T19:29:31Z
Modified
2024-11-20T07:59:23.647183Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N CVSS Calculator
Summary
Harbor fails to validate the user permissions when updating tag retention policies
Details

Impact

Harbor fails to validate the user permissions when updating tag retention policies. API call:

PUT /retentions/{id}

By sending a request to update a tag retention policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify tag retention policies configured in other projects.

Patches

This and similar issues are fixed in Harbor v2.5.2 and later. Please upgrade as soon as possible.

Workarounds

There are no workarounds available.

For more information

If you have any questions or comments about this advisory: * Open an issue in the Harbor GitHub repository

Credits

Thanks to Gal Goldstein and Daniel Abeles from Oxeye Security for reporting this issue.

References

Affected packages

Go / github.com/goharbor/harbor

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0
Fixed
1.10.13

Database specific

{
    "last_known_affected_version_range": "<= 1.10.12"
}

Go / github.com/goharbor/harbor

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.4.3

Database specific

{
    "last_known_affected_version_range": "<= 2.4.2"
}

Go / github.com/goharbor/harbor

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
2.5.0
Fixed
2.5.2

Database specific

{
    "last_known_affected_version_range": "<= 2.5.1"
}