Description
A sandbox escape vulnerability exists in dotCMS’s Velocity scripting engine (VTools) that allows authenticated users with scripting privileges to bypass class and package restrictions enforced by SecureUberspectorImpl. By dynamically modifying the Velocity engine’s runtime configuration and reinitializing its Uberspect, a malicious actor can remove the introspector.restrict.classes and introspector.restrict.packages protections. Once these restrictions are cleared, the attacker can access arbitrary Java classes, including java.lang.Runtime, and execute arbitrary system commands under the privileges of the application process (e.g. dotCMS or Tomcat user).
Remediation
References
Related Vulnerabilities
Apache Tomcat Session Fixation Vulnerability (CVE-2019-17563)
OpenSSL Resource Management Errors Vulnerability (CVE-2014-3507)
WordPress Plugin WOOCS-Currency Switcher for WooCommerce Professional Cross-Site Scripting (1.3.7.2)
WordPress Plugin Companion Sitemap Generator Cross-Site Request Forgery (3.6.6)
XWiki Inadequate Encryption Strength Vulnerability (CVE-2022-29161)