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


0.0
medium

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.07% (30th percentile)
Expand this section
NVD
5.3 medium

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 ID SNYK-GOLANG-GITHUBCOMGOHARBORHARBORSRCLIB-1069936
  • published 4 Feb 2021
  • disclosed 3 Feb 2021
  • credit Javier Provecho

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/