CVE-2022-31667
Description
Harbor fails to validate the user permissions when updating a robot account that belongs to a project that the authenticated user doesn’t have access to. By sending a request that attempts to update a robot account, and specifying a robot account id and robot account name that belongs to a different project that the user doesn’t have access to, it was possible to revoke the robot account permissions.
How to fix
- linuxfoundation harbor2.4.3, 2.5.2 or later
- github.com/goharbor/harbor1.10.13, 2.4.3, 2.5.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| linuxfoundation harbor | 2.0.0 ≤ v < 2.4.3, 2.5.0 ≤ v < 2.5.2 | 2.4.3, 2.5.2 |
| github.com/goharbor/harborGo | 1.0.0 ≤ v < 1.10.13, 2.0.0 ≤ v < 2.4.3, 2.5.0 ≤ v < 2.5.2 | 1.10.13, 2.4.3, 2.5.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.