Lucene search

K
osvGoogleOSV:GHSA-Q9P8-33WC-H432
HistoryMay 24, 2021 - 4:58 p.m.

Authenticated users can exploit an enumeration vulnerability in Harbor

2021-05-2416:58:06
Google
osv.dev

6.4 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

44.8%

Impact

Hidde Smit from Cyber Eagle has discovered an User Enumeration flaw in Harbor. The issue is present in the “/users” api endpoint. This endpoint is supposed to be restricted to administrators. This restriction is able to be bypassed and information can be obtained via the “search” functionality.

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>

The vulnerability was immediately fixed by the Harbor team and all supported versions were patched. With the patched versions of Harbor, the username is required for search and we have removed the support for querying by email.

Patches

If your product uses the affected releases of Harbor, update to either version 2.1.0 or 2.0.3 to fix this issue immediately

https://github.com/goharbor/harbor/releases/tag/v2.1.0
https://github.com/goharbor/harbor/releases/tag/v2.0.3

Workarounds

There is no workaround for this issue

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://vulners.com/cve/CVE-2020-13794

CPENameOperatorVersion
github.com/goharbor/harborlt2.0.3

6.4 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

44.8%

Related for OSV:GHSA-Q9P8-33WC-H432