Auth bypass in Linuxfoundation Harbor
CVE-2019-16097
core/api/user.go in Harbor 1.7.0 through 1.8.2 allows non-admin users to create admin accounts via the POST /api/users API, when Harbor is setup with DB as authentication backend and allow user to do self-registration. Fixed version: v1.7.6 v1.8.3. v.1.9.0. Workaround without applying the fix: configure Harbor to use non-DB authentication backend such as LDAP.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.224, 97.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Linuxfoundation Harbor — versions 1.7.0, 1.7.1, 1.7.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
6 public repositories with exploit or proof-of-concept code for this CVE:
- evilAdan0s/CVE-2019-16097 (23 stars, last pushed 2019-09-19): CVE-2019-16097 PoC
- rockmelodies/CVE-2019-16097-batch (5 stars, last pushed 2019-09-21): CVE-2019-16097-batch
- luckybool1020/CVE-2019-16097 (2 stars, last pushed 2023-07-28): Harbor 未授权创建管理员漏洞原理 docker及poc[基于pocsuite框架]
- dacade/cve-2019-16097 (1 star, last pushed 2019-09-25): cve-2019-1609
- theLSA/harbor-give-me-admin (last pushed 2019-10-02): harbor(<1.7.6/1.8.3) privilege escalation (CVE-2019-16097)
- ianxtianxt/CVE-2019-16097 (last pushed 2019-09-22)
Also mentioned in 36 other repositories (0day404/vulnerability-poc, 0xT11/CVE-POC, 20142995/Goby, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/goharbor/harbor/commit/b6db8a8a106259ec9a2c48be8a380cb3b37cf517 (Patch, Third Party Advisory)
- github.com/goharbor/harbor/compare/v1.8.2...v1.9.0-rc1 (Patch, Third Party Advisory)
- unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-… (Third Party Advisory)
- github.com/goharbor/harbor/releases/tag/v1.8.3 (Third Party Advisory)
- github.com/goharbor/harbor/releases/tag/v1.7.6 (Third Party Advisory)
- www.vmware.com/security/advisories/VMSA-2019-0015.html (Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.