Authentication Bypass Affecting github.com/goharbor/harbor/src/server/middleware Open this link in a new tab package, versions >=2.0.0-rc1 <2.0.5 >=2.1.0-tech-preview <2.1.2


0.0
medium
  • Attack Complexity

    Low

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-GITHUBCOMGOHARBORHARBORSRCSERVERMIDDLEWARE-1069937

  • published

    4 Feb 2021

  • disclosed

    3 Feb 2021

  • credit

    Javier Provecho

How to fix?

Upgrade github.com/goharbor/harbor/src/server/middleware 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/