GHSA-8c6p-v837-77f6

Suggest an improvement
Source
https://github.com/advisories/GHSA-8c6p-v837-77f6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-8c6p-v837-77f6/GHSA-8c6p-v837-77f6.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-8c6p-v837-77f6
Aliases
Published
2022-09-16T19:38:12Z
Modified
2024-11-20T07:59:12.552897Z
Severity
  • 6.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L CVSS Calculator
Summary
Harbor fails to validate the user permissions when updating tag immutability policies
Details

Impact

Harbor fails to validate the user permissions when updating tag immutability policies - API call:

PUT /projects/{projectnameorid}/immutabletagrules/{immutablerule_id}

By sending a request to update a tag immutability policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify tag immutability 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.

Database specific
{
    "nvd_published_at": "2024-11-14T12:15:16Z",
    "cwe_ids": [
        "CWE-285",
        "CWE-863"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-09-16T19:38:12Z"
}
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"
}