CVE-2020-6754
dotCMS vulnerability analysis and mitigation

Overview

CVE-2020-6754 affects dotCMS versions before 5.2.4, discovered on January 9, 2020. The vulnerability involves a directory traversal issue leading to incorrect access control. The flaw allows attackers to read or execute files under $TOMCAT_HOME/webapps/ROOT/assets directory, which should be a protected location (Vendor Advisory).

Technical details

The vulnerability stems from dotCMS's failure to normalize the URI string when checking if a user should have access to a specific directory. An attacker can craft URIs that traverse the directory structure to access protected files. Additionally, when files are uploaded into dotCMS, it creates temporary files under the ./assets directory with predictable locations. The vulnerability has received a CVSS v3.1 base score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability allows unauthorized access to protected files under the assets directory and enables attackers to upload temporary files (including .jsp files) into /webapps/ROOT/assets/tmp_upload. This can lead to remote command execution with the permissions of the user running the dotCMS application (Vendor Advisory).

Mitigation and workarounds

Several mitigation options are available: 1) Upgrade to dotCMS 5.2.4 or higher, 2) Store the dotCMS /assets and /dotsecure folders outside of the webapps/ROOT directory by configuring ASSET_REAL_PATH and DYNAMIC_CONTENT_PATH in dotmarketing-config.properties, 3) Install an OSGI plugin that normalizes URI paths, available at the dotCMS GitHub repository, 4) Add constraints to web.xml to prevent unauthorized access to ./assets and ./dotsecure directories (Vendor Advisory).

Additional resources


SourceThis report was generated using AI

Related dotCMS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-3938MEDIUM6.1
  • dotCMSdotCMS
  • cpe:2.3:a:dotcms:dotcms
NoYesJul 25, 2024
CVE-2023-3042MEDIUM6.1
  • dotCMSdotCMS
  • cpe:2.3:a:dotcms:dotcms
NoYesOct 17, 2023
CVE-2022-37034MEDIUM5.3
  • dotCMSdotCMS
  • cpe:2.3:a:dotcms:dotcms
NoYesFeb 01, 2023
CVE-2024-3165MEDIUM4.5
  • dotCMSdotCMS
  • cpe:2.3:a:dotcms:dotcms
NoYesApr 01, 2024
CVE-2024-3164MEDIUM4.5
  • dotCMSdotCMS
  • cpe:2.3:a:dotcms:dotcms
NoYesApr 01, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management