dotCMS
dotCMS Unrestricted Upload of File Vulnerability
An issue was discovered in the ContentResource API in dotCMS 3.0 through 22.02. Attackers can craft a multipart form request to post a file whose filename is not initially sanitized. This allows directory traversal, in which the file is saved outside of the intended storage location. If anonymous content creation is enabled, this allows an unauthenticated attacker to upload an executable file, such as a .jsp file, that can lead to remote code execution.
Timeline
Days relative to CVE publicationFirst public PoC 59 days before publication; added to CISA KEV 39 days after publication. First PoC: Metasploit exploit: DotCMS RCE via Arbitrary File Upload. (exploit/multi/http/dotcms_file_upload_rce) (Metasploit, 19 May 2022).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| KatherineHuangg/metasploit-POC | 13 Jul 2022 −4.4 d | 0 | PoC older repo: PoC date unknown, not used for the first PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: DotCMS RCE via Arbitrary File Upload. (exploit/multi/http/dotcms_file_upload_rce) | 19 May 2022 | 14 Nov 2026 |
| nuclei template | nuclei template: DotCMS - Arbitrary File Upload | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp
- Query
cmd=ls- Seen in
- 1 repo: KatherineHuangg/metasploit-POC
- Evidence
- KatherineHuangg/metasploit-POC/CVE-2022-29464/wso2_file_upload_rce.py:82
GET /abc.jsp
POST //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp/fileupload/toolsAny
- Body markers
name="../../../../repository/deployment/server/webapps/authenticationendpoint/abc.jsp"inmultipart/form-data- Seen in
- 1 repo: KatherineHuangg/metasploit-POC
- Evidence
- KatherineHuangg/metasploit-POC/CVE-2022-29464/wso2_file_upload_rce.py:73
POST /api/content/
- Body markers
name="../../../../../../../../../srv/dotserver/tomcat-9.0.41/webapps/ROOT/html/js/dojo/abc.jsp"inmultipart/form-data- Seen in
- 1 repo: KatherineHuangg/metasploit-POC
- Evidence
- KatherineHuangg/metasploit-POC/CVE-2022-26352/dotcms_file_upload_rce.py:72
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp\?(?:.*&)?cmd=ls
(?i)^/abc\.jsp(?:[?#].*)?$
(?i)^//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp/fileupload/toolsAny(?:[?#].*)?$
(?i)^/api/content/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-26352 dotCMS dotCMS exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp"; http.uri; content:"cmd=ls"; reference:url,poc.griffinguard.io/cve/CVE-2022-26352; classtype:web-application-attack; sid:9825042; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-26352 dotCMS dotCMS exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/abc.jsp"; reference:url,poc.griffinguard.io/cve/CVE-2022-26352; classtype:web-application-attack; sid:9741253; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-26352 dotCMS dotCMS exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp/fileupload/toolsAny"; http.request_body; content:"name=|22|../../../../repository/deployment/server/webapps/authenticationendpoint/abc.jsp|22|"; reference:url,poc.griffinguard.io/cve/CVE-2022-26352; classtype:web-application-attack; sid:9103838; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-26352 dotCMS dotCMS exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/content/"; http.request_body; content:"name=|22|../../../../../../../../../srv/dotserver/tomcat-9.0.41/webapps/ROOT/html/js/dojo/abc.jsp|22|"; reference:url,poc.griffinguard.io/cve/CVE-2022-26352; classtype:web-application-attack; sid:9537105; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: dotCMS dotCMS exploit attempt (CVE-2022-26352)
id: gg-pocmon-cve-2022-26352-9825042
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-26352. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-26352
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp'
cs-uri-query|contains|all:
- 'cmd=ls'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.26352
title: dotCMS dotCMS exploit attempt (CVE-2022-26352)
id: gg-pocmon-cve-2022-26352-9741253
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-26352. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-26352
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/abc.jsp'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.26352
title: dotCMS dotCMS exploit attempt (CVE-2022-26352)
id: gg-pocmon-cve-2022-26352-9103838
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-26352. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-26352
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp/fileupload/toolsAny'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.26352
title: dotCMS dotCMS exploit attempt (CVE-2022-26352)
id: gg-pocmon-cve-2022-26352-9537105
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-26352. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-26352
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/content/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.26352