Advisory

GHSA-r864-28pw-8682

Also known as: BIT-harbor-2022-31668, CVE-2022-31668, GHSA-3wpx-625q-22j7, GO-2024-3268

Summary

Harbor fails to validate the user permissions when updating p2p preheat policies

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-11-14 12:31 UTC
Modified
2024-12-12 19:15 UTC

Affected packages and fixes

github.com/goharbor/harbor

Go · All systems

Affected

  • introduced 2.0.0, fixed 2.4.3 (semver)

Fixed versions

2.4.3

Fix

github.com/goharbor/harbor

Go · All systems

Affected

  • introduced 2.5.0, fixed 2.5.2 (semver)

Fixed versions

2.5.2

Fix

github.com/goharbor/harbor/src

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20220630175814-b4ef1db (semver)

Fixed versions

0.0.0-20220630175814-b4ef1db

Fix

  • Fixed version 0.0.0-20220630175814-b4ef1db
    go get github.com/goharbor/harbor/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences