PoC Monitor
← All CVEs
CVE-2022-26352published 17 Jul 2022 21:54 UTCData: JSON · API

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.

First public PoC 59 days beforebefore publication · 19 May 2022 · Metasploit
Public PoCs31 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-noinfo
CISA KEV 25 Aug 202239 days after publication · ransomware use known

Timeline

Days relative to CVE publication
-56-42-28-14t=0+14+28First public PoC19 May 2022 · t−59dCVE published17 Jul 2022 · t = 0Added to CISA KEV25 Aug 2022 · t+39d

First 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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
MetasploitMetasploit exploit: DotCMS RCE via Arbitrary File Upload. (exploit/multi/http/dotcms_file_upload_rce)19 May 202214 Nov 2026
nuclei templatenuclei template: DotCMS - Arbitrary File Upload27 Apr 202314 Nov 2026

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

GET //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

POST //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp/fileupload/toolsAny

Body markers
name="../../../../repository/deployment/server/webapps/authenticationendpoint/abc.jsp" in multipart/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" in multipart/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.

GET //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp
(?i)^//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp\?(?:.*&)?cmd=ls
GET /abc.jsp
(?i)^/abc\.jsp(?:[?#].*)?$
POST //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp/fileupload/toolsAny
(?i)^//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp/fileupload/toolsAny(?:[?#].*)?$
POST /api/content/
(?i)^/api/content/(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp
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;)
GET /abc.jsp
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;)
POST //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp/fileupload/toolsAny
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;)
POST /api/content/
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.

GET //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp
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
GET /abc.jsp
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
POST //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp/fileupload/toolsAny
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
POST /api/content/
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