Description
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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 6 repositories
-
evilAdan0s/CVE-2019-16097 ★ 23 · Sep 19, 2019
CVE-2019-16097 PoC
-
rockmelodies/CVE-2019-16097-batch ★ 5 · Sep 20, 2019
CVE-2019-16097-batch
-
luckybool1020/CVE-2019-16097 ★ 2 · Nov 14, 2019
Harbor 未授权创建管理员漏洞原理 docker及poc[基于pocsuite框架]
-
dacade/cve-2019-16097 ★ 1 · Sep 25, 2019
cve-2019-1609
-
theLSA/harbor-give-me-admin ★ 0 · Oct 2, 2019
harbor(<1.7.6/1.8.3) privilege escalation (CVE-2019-16097)
-
ianxtianxt/CVE-2019-16097 ★ 0 · Sep 22, 2019
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Harbor <=1.82.0 - Privilege Escalation http/cves/2019/CVE-2019-16097.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/goharbor/harbor | >= 1.7.0, < 1.9.0-rc1 | 1.9.0-rc1 | GHSA-9wvh-ff5f-xjpj |
References
- https://github.com/goharbor/harbor/commit/b6db8a8a106259ec9a2c48be8a380cb3b37cf517
- https://github.com/goharbor/harbor/compare/v1.8.2...v1.9.0-rc1
- https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097/
- https://github.com/goharbor/harbor/releases/tag/v1.8.3
- https://github.com/goharbor/harbor/releases/tag/v1.7.6
- http://www.vmware.com/security/advisories/VMSA-2019-0015.html