GHSA-jf8p-3vjh-pq94

Suggest an improvement
Source
https://github.com/advisories/GHSA-jf8p-3vjh-pq94
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-jf8p-3vjh-pq94/GHSA-jf8p-3vjh-pq94.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-jf8p-3vjh-pq94
Aliases
  • CVE-2022-31666
Published
2022-09-16T19:35:47Z
Modified
2024-11-14T17:53:34Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
Harbor fails to validate the user permissions when viewing Webhook policies
Details

Impact

Harbor fails to validate the user permissions to view Webhook policies including relevant credentials configured in different projects the user doesn’t have access to, resulting in malicious users being able to read Webhook policies of other users/projects. API call is

  GET /projects/{projectnameorid}/webhook/policies/{webhookpolicy_id}

By sending the below request and specifying different Webhook policy ids in the last part of the URL, the malicious user may disclose Webhook policies related to other repositories/projects.: none;">

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"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-09-16T19:35:47Z"
}
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"
}