HIGH7.4
GHSA-r864-28pw-8682
Harbor fails to validate the user permissions when updating p2p preheat policies
Quick fix
GHSA-r864-28pw-8682 — github.com/goharbor/harbor: upgrade to the fixed version with the command below.
go get github.com/goharbor/harbor@v2.4.3Details
Harbor fails to validate the user permissions when updating p2p preheat policies. By sending a request to update a p2p preheat policy with an id that belongs to a project that the currently authenticated user doesn't have access to, the attacker could modify p2p preheat policies configured in other projects.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/goharbor/harbor
Introduced in:
2.0.0Fixed in: 2.4.3Fix
go get github.com/goharbor/harbor@v2.4.3Go/github.com/goharbor/harbor
Introduced in:
2.5.0Fixed in: 2.5.2Fix
go get github.com/goharbor/harbor@v2.5.2Go/github.com/goharbor/harbor/src
Introduced in:
0Fixed in: 0.0.0-20220630175814-b4ef1dbFix
go get github.com/goharbor/harbor/src@v0.0.0-20220630175814-b4ef1dbReferences
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/goharbor/harbor"]}'