Information Exposure Affecting github.com/goharbor/harbor/src/core/api package, versions >=1.9.0 <2.0.3 >2.0.3 <2.1.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.11% (45th 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 ID SNYK-GOLANG-GITHUBCOMGOHARBORHARBORSRCCOREAPI-1014644
  • published 1 Oct 2020
  • disclosed 1 Oct 2020
  • credit Hidde Smit from Cyber Eagle

How to fix?

Upgrade github.com/goharbor/harbor/src/core/api to version 2.0.3, 2.1.0 or higher.

Overview

github.com/goharbor/harbor/src/core/api is a cloud native registry project that stores, signs, and scans content.

Affected versions of this package are vulnerable to Information Exposure. Non-administrator users (such as those created via self-registration) can list all usernames and user IDs by sending a GET request to /api/users/search with parameter "username" and value "_", as follows:

curl -X GET "https://<host>/api/users/search?username=_" -H "accept: application/json" --user <user>:<password>

References

CVSS Scores

version 3.1
Expand this section

Snyk

7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

4.3 medium