QID 730495
Date Published: 2022-05-24
QID 730495: Dot CMS Multipart File Directory Traversal and Remote Code Execution (RCE) Vulnerability
When files are uploaded into dotCMS via the content API, but before they become content, dotCMS writes the file down in a temp directory. In the case of this vulnerability, dotCMS does not sanitize the filename passed in via the multipart request header and thus does not sanitize the temp file's name. This allows a specially crafted request to POST files to dotCMS via the ContentResource (POST /api/content) that get written outside of the dotCMS temp directory.
Affected Versions:
Dot CMS versions prior to 22.03, 5.3.8.10, 21.06.7
QID Detection Logic (Unauthenticated):
This QID checks for vulnerable version of Dot CMS by sending a GET request to /api/v1/appconfiguration endpoint.
Successful exploitation of the vulnerability may allow an attacker to upload a special .jsp file to the webapp/ROOT directory of dotCMS which can allow for remote code execution. Additionally, if dotCMS is configured "withCONTENT_APIS_ALLOW_ANONYMOUS=WRITE" then this vulnerability is exploitable by Anonymous users.
- SI-62 -
www.dotcms.com/security/SI-62
CVEs related to QID 730495
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| SI-62 |
|