GitHub Advisoryadvisory · Go
GHSA-q9p8-33wc-h432 Authenticated users can exploit an enumeration vulnerability in Harbor
MEDIUM
Official page ↗
- Aliases
- CVE-2020-13794
- Ecosystem
- Go
- Packages
- github.com/goharbor/harbor
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-862
- Reviewed
- 2021-05-24
Affected packages
• Go github.com/goharbor/harbor: < 2.0.3 → fixed in 2.0.3
Description
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:///api/users/search?username=_" -H "accept: application/json" --user :`
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://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13794
Related
Alias · CVE (1)
- CVE-2020-13794 Harbor 1.9.* 1.10.* and 2.0.* allows Exposure of Sensitive Information to an Unauthorized Actor. vulnerability
Weakness · CWE (1)
- CWE-862 Missing Authorization weakness
References
- https://github.com/goharbor/harbor/security/advisories/GHSA-q9p8-33wc-h432 web
- https://nvd.nist.gov/vuln/detail/CVE-2020-13794 advisory
- https://github.com/goharbor/harbor package
- https://github.com/goharbor/harbor/releases web
- https://github.com/goharbor/harbor/releases/tag/v2.0.3 web
- https://github.com/goharbor/harbor/releases/tag/v2.1.0 web
- https://www.cybereagle.io/blog/cve-2020-13794 web