CVE-2020-13788: Github.com/goharbor/harbor Harbor Is Vulnerable To A Vulnerability
LOWCVE-2020-13788 is a LOW (CVSS 4.4) harbor is vulnerable to a vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/goharbor/harbor libraries in the Go ecosystem. The issue involves harbor is vulnerable to a limited server-side request forgery (ssrf) (cve-2020-13788). Remediation is available by upgrading affected packages to version 2.0.1.
CVE-2020-13788 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C).
How to Fix CVE-2020-13788
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.1
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-13788, 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.1), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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-13788 Affected Github.com/goharbor/harbor Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/goharbor/harbor
|
Go |
≥ 1.8.0
< 2.0.1
|
2.0.1
|
References
Frequently Asked Questions
What is CVE-2020-13788?
Which Github.com/goharbor/harbor versions are affected?
What version fixes CVE-2020-13788?
Is github.com/goharbor/harbor affected?
What is the CVSS score of CVE-2020-13788?
What CWE is associated with CVE-2020-13788?
How can I check Go dependencies for CVE-2020-13788?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-33p6-fx42-7rf5",
"modified" : "2021-05-24T19:08:11Z",
"published" : "2022-02-11T23:17:02Z",
"aliases" : [ "CVE-2020-13788" ],
"summary" : "Harbor is vulnerable to a limited Server-Side Request Forgery (SSRF) (CVE-2020-13788)",
"details" : "# Impact\nMatt Hamilton from Soluble has discovered a limited Server-Side Request Forgery (SSRF) that allowed Harbor project owners to scan the TCP ports of hosts on the Harbor server's internal network. \n\nThe vulnerability was immediately fixed by the Harbor team. \n\n# Issue \nThe “Test Endpoint” API, part of the functionality for ensuring a project Webhook is accessible and functional, is vulnerable to a limited SSRF attack. A malicious user that is also a project administrator can use this API for internal port scanning.\n\n# Known Attack Vectors\nSuccessful exploitation of this issue will lead to bad actors identifying open TCP ports on any network that is accessible by the Harbor core services\n\n# Patches\nIf your product uses the affected releases of Harbor, update to version 2.0.1 to patch this issue immediately.\n\nhttps://github.com/goharbor/harbor/releases/tag/v2.0.1\n\n# Workarounds\nSince only project administrators (the user that created the project) are allowed to test the webhook endpoints configured in Harbor, a Harbor system administrator can control who is a project admin. In addition, Harbor system administrators can enforce a setting where only an administrator is allowed to create new projects instead of the default Everyone. This further restricts who can be a project administrator in Harbor.\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://nvd.nist.gov/vuln/detail/CVE-2020-13788\nhttps://www.soluble.ai/blog/harbor-ssrf-cve-2020-13788",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/goharbor/harbor"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.8.0"
}, {
"fixed" : "2.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/goharbor/harbor/security/advisories/GHSA-33p6-fx42-7rf5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-13788"
}, {
"type" : "WEB",
"url" : "https://github.com/goharbor/harbor/releases"
}, {
"type" : "WEB",
"url" : "https://www.soluble.ai/blog/harbor-ssrf-cve-2020-13788"
}, {
"type" : "WEB",
"url" : "https://www.youtube.com/watch?v=v8Isqy4yR3Q"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-24T19:08:11Z",
"nvd_published_at" : null
}
}