GitHub Advisoryadvisory · Go

GHSA-38r5-34mr-mvm7 "catalog's registry v2 api exposed on unauthenticated path in Harbor"

MEDIUM Published 2022-02-12 Modified 2022-02-12 Official page ↗
Aliases
CVE-2020-29662
Ecosystem
Go
Packages
github.com/goharbor/harbor
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses
CWE-287, CWE-319
Reviewed
2021-05-21

Affected packages

• Go github.com/goharbor/harbor: < 2.0.5 → fixed in 2.0.5 • Go github.com/goharbor/harbor: >= 2.1.0, < 2.1.2 → fixed in 2.1.2

Description

Impact Javier Provecho, member of the TCCT (Telefonica Cloud & Cybersecurity Tech better known as ElevenPaths) SRE team discovered a vulnerability regarding Harbor’s v2 API. The catalog’s registry v2 api is exposed on an unauthenticated path. The current catalog API path is served at the following path and it requires to be authenticated as an admin. "GET /v2/_catalog" However, the authorization can be bypassed by using the following path "GET /v2/_catalog/" Patches If your product uses the affected releases of Harbor, update to either version v2.1.2 or v2.0.5 to fix this issue immediately https://github.com/goharbor/harbor/releases/tag/v2.1.2 https://github.com/goharbor/harbor/releases/tag/v2.0.5 Workarounds If you cannot access a patched release, it can be mitigated by disabling that API. For example, redirecting it to a 404 sink hole in the ingress. For more information If you have any questions or comments about this advisory, contact [email protected] View our security policy at https://github.com/goharbor/harbor/security/policy https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-29662

Related

Alias · CVE (1)

  • CVE-2020-29662 In Harbor 2.0 before 2.0.5 and 2.1.x before 2.1.2 the catalog’s registry API is exposed on an unauthenticated path. vulnerability

Weakness · CWE (2)

  • CWE-287 Improper Authentication weakness
  • CWE-319 Cleartext Transmission of Sensitive Information weakness

References