GHSA-q76q-q8hw-hmpw

Suggest an improvement
Source
https://github.com/advisories/GHSA-q76q-q8hw-hmpw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-q76q-q8hw-hmpw/GHSA-q76q-q8hw-hmpw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q76q-q8hw-hmpw
Aliases
  • CVE-2022-31671
Published
2022-09-09T19:47:03Z
Modified
2023-11-08T04:09:32.268508Z
Severity
  • 5.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N CVSS Calculator
Summary
Harbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs
Details

Impact

Harbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs - API call

  GET /projects/{projectname}/preheat/policies/{preheatpolicyname}/executions/{executionid}/tasks/{task_id}/logs

By sending a request that attempts to read P2P preheat execution logs and specifying different job ids, malicious authenticatedusers could read all the job logs stored in the Harbor database.

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"
}