ghsa-q9p8-33wc-h432
Vulnerability from github
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 cncf-harbor-security@lists.cncf.io View our security policy at https://github.com/goharbor/harbor/security/policy https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13794
{ "affected": [ { "package": { "ecosystem": "Go", "name": "github.com/goharbor/harbor" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.0.3" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2020-13794" ], "database_specific": { "cwe_ids": [ "CWE-862" ], "github_reviewed": true, "github_reviewed_at": "2021-05-24T12:51:00Z", "nvd_published_at": "2020-09-30T18:15:00Z", "severity": "MODERATE" }, "details": "### **Impact**\n\nHidde 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.\n\nNon-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:\n\n`curl -X GET \"https://\u003chost\u003e/api/users/search?username=_\" -H \"accept: application/json\" --user \u003cuser\u003e:\u003cpassword\u003e`\n\nThe 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.\n\n### **Patches**\nIf your product uses the affected releases of Harbor, update to either version 2.1.0 or 2.0.3 to fix this issue immediately\n\nhttps://github.com/goharbor/harbor/releases/tag/v2.1.0\nhttps://github.com/goharbor/harbor/releases/tag/v2.0.3\n\n### **Workarounds**\nThere is no workaround for this issue\n\n### **For more information**\nIf you have any questions or comments about this advisory, contact cncf-harbor-security@lists.cncf.io\nView our security policy at https://github.com/goharbor/harbor/security/policy\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13794", "id": "GHSA-q9p8-33wc-h432", "modified": "2022-10-05T17:58:07Z", "published": "2021-05-24T16:58:06Z", "references": [ { "type": "WEB", "url": "https://github.com/goharbor/harbor/security/advisories/GHSA-q9p8-33wc-h432" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-13794" }, { "type": "PACKAGE", "url": "https://github.com/goharbor/harbor" }, { "type": "WEB", "url": "https://github.com/goharbor/harbor/releases" }, { "type": "WEB", "url": "https://github.com/goharbor/harbor/releases/tag/v2.0.3" }, { "type": "WEB", "url": "https://github.com/goharbor/harbor/releases/tag/v2.1.0" }, { "type": "WEB", "url": "https://www.cybereagle.io/blog/cve-2020-13794" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Authenticated users can exploit an enumeration vulnerability in Harbor" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.