GitHub Advisoryadvisory · Go

GHSA-r864-28pw-8682 Harbor fails to validate the user permissions when updating p2p preheat policies

HIGH Published 2024-11-14 Modified 2024-12-12 Official page ↗
Aliases
CVE-2022-31668
Ecosystem
Go
Packages
github.com/goharbor/harbor, github.com/goharbor/harbor/src
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
Weaknesses
CWE-285
Reviewed
2024-11-14

Affected packages

• Go github.com/goharbor/harbor: >= 2.0.0, < 2.4.3 → fixed in 2.4.3 • Go github.com/goharbor/harbor: >= 2.5.0, < 2.5.2 → fixed in 2.5.2 • Go github.com/goharbor/harbor/src: < 0.0.0-20220630175814-b4ef1db → fixed in 0.0.0-20220630175814-b4ef1db

Description

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.

Related

Alias · CVE (1)

  • CVE-2022-31668 Harbor fails to validate the user permissions when updating p2p preheat policies. vulnerability

Weakness · CWE (1)

  • CWE-285 Improper Authorization weakness

References