Executive Summary

Summary
Title dotCMS template permissions allow arbitrary code execution
Informations
Name VU#898083 First vendor Publication 2012-05-25
Vendor VU-CERT Last vendor Modification 2012-05-25
Severity (Vendor) N/A Revision M

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:S/C:P/I:P/A:P)
Cvss Base Score 6 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Medium
Cvss Expoit Score 6.8 Authentication Requires single instance
Calculate full CVSS 2.0 Vectors scores

Detail

Vulnerability Note VU#898083

dotCMS template permissions allow arbitrary code execution

Original Release date: 25 May 2012 | Last revised: 25 May 2012

Overview

The dotCMS content management system version 1.9 and possibly earlier versions, contains a vulnerability that allows users with the appropriate permissions to create a malicious template with arbitrary code.

Description

An authenticated dotCMS user with the permissions required to author and upload templates may create a malicious XSLT or Velocity template that can execute arbitrary java code. The arbitrary java code will run with the permissions of the web service account.

Impact

An authenticated attacker with the permissions to create a template may upload a malicious XSLT or Velocity template that can run arbitrary java code. In some cases, the attacker may be able to exploit this vulnerability to obtain a shell on the web server.

Solution

Apply an Update

dotCMS version 1.9.5.1 or 2.0.1 and later address these vulnerabilities. If you are unable to upgrade please consider the following workarounds.

Workarounds

Unmap the XSLT Tool in the toolbox.xml file or apply this XSLT Tool which is backported from 2.0 to 1.9

Add to system.propertiesthe property: runtime.introspector.uberspect = org.apache.velocity.util.introspection.SecureUberspector

Vendor Information (Learn More)

VendorStatusDate NotifiedDate Updated
dotCMSAffected13 Apr 201201 May 2012
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

GroupScoreVector
Base8.5AV:N/AC:M/Au:S/C:C/I:C/A:C
Temporal6.9E:POC/RL:U/RC:UC
Environmental6.9CDP:ND/TD:ND/CR:ND/IR:ND/AR:ND

References

  • http://dotcms.com/
  • https://github.com/dotCMS/dotCMS/issues/261
  • https://github.com/dotCMS/dotCMS/issues/281
  • https://velocity.apache.org/engine/devel/apidocs/org/apache/velocity/util/introspection/SecureUberspector.html
  • https://gist.github.com/2627440

Credit

Thanks to Ben Murphy for reporting this vulnerability.

This document was written by Jared Allar.

Other Information

  • CVE IDs:CVE-2012-1826
  • Date Public:25 May 2012
  • Date First Published:25 May 2012
  • Date Last Updated:25 May 2012
  • Document Revision:25

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.


This product is provided subject to the Notification as indicated here: http://www.us-cert.gov/legal.html#notify

Original Source

Url : http://www.kb.cert.org/vuls/id/898083

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-264 Permissions, Privileges, and Access Controls

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 2