Authentication Bypass Affecting github.com/goharbor/harbor/src/lib package, versions >=2.0.0-rc1 <2.0.5>=2.1.0-tech-preview <2.1.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authentication Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOHARBORHARBORSRCLIB-1069936
  • published4 Feb 2021
  • disclosed3 Feb 2021
  • creditJavier Provecho

Introduced: 3 Feb 2021

CVE-2020-29662  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade github.com/goharbor/harbor/src/lib to version 2.0.5, 2.1.2 or higher.

Overview

Affected versions of this package are vulnerable to Authentication Bypass. The catalog’s registry API is exposed on an unauthenticated path. The catalog API path is served at the following path and it requires authentication as an admin:

GET /v2/_catalog

However, the authorization can be bypassed by using the following path:

GET /v2/_catalog/

CVSS Scores

version 3.1