CVE-2020-13794: Github.com/goharbor/harbor Authenticated Users Can Exploit An Vulnerability
MODERATECVE-2020-13794 is a MODERATE (CVSS 4.3) authenticated users can exploit an vulnerability (CWE-862: Missing Authorization) affecting Github.com/goharbor/harbor libraries in the Go ecosystem. The issue involves authenticated users can exploit an enumeration vulnerability in harbor. Remediation is available by upgrading affected packages to version 2.0.3.
CVE-2020-13794 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2020-13794
To remediate this vulnerability, upgrade all affected Github.com/goharbor/harbor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/goharbor/harbor to 2.0.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/goharbor/harbor
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-13794, inspect your project dependencies for Github.com/goharbor/harbor:
inspect dependencies for github.com/goharbor/harbor
Analyze the terminal output to locate any version of Github.com/goharbor/harbor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Github.com/goharbor/harbor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-13794 Affected Github.com/goharbor/harbor Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/goharbor/harbor
|
Go |
< 2.0.3
|
2.0.3
|
References
Frequently Asked Questions
What is CVE-2020-13794?
Which Github.com/goharbor/harbor versions are affected?
What version fixes CVE-2020-13794?
Is github.com/goharbor/harbor affected?
What is the CVSS score of CVE-2020-13794?
What CWE is associated with CVE-2020-13794?
How can I check Go dependencies for CVE-2020-13794?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q9p8-33wc-h432",
"modified" : "2022-10-05T17:58:07Z",
"published" : "2021-05-24T16:58:06Z",
"aliases" : [ "CVE-2020-13794" ],
"summary" : "Authenticated users can exploit an enumeration vulnerability in Harbor",
"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://<host>/api/users/search?username=_\" -H \"accept: application/json\" --user <user>:<password>`\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",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/goharbor/harbor"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.3"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-862" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-24T12:51:00Z",
"nvd_published_at" : "2020-09-30T18:15:00Z"
}
}