• Advisory ID: DRUPAL-SA-CONTRIB-2012-064
  • Project: Ubercart (third-party module)
  • Version: 6.x, 7.x
  • Date: 2012-April-25
  • Security risk: Moderately critical
  • Exploitable from: Varies (Local & Remote)
  • Vulnerability: Cross Site Scripting, Arbitrary PHP code execution, Multiple vulnerabilities


The Ubercart module for Drupal provides a shopping cart and e-commerce features for Drupal. Parts of Ubercart were vulnerable to a Failure to encrypt data, Cross Site Scripting, and an Arbitrary PHP Execution vulnerability.

Failure to encrypt data: Exploitable from local

CVE: CVE-2012-2299

Passwords supplied by new customers during checkout were stored as plain text until payment was completed for an order, for a maximum of 15 minutes. This vulnerability is not exploitable remotely, but information may have inadvertently been leaked via database access (e.g. backups, developer laptops that are compromised).

Cross Site Scripting: Exploitable from remote

CVE: CVE-2012-2300

The product classes feature did not properly sanitize output and was vulnerable to a cross site scripting attack. This vulnerability is mitigated by the fact that an attacker must have the "administer product classes" permission.

Arbitrary PHP Execution: Exploitable from remote

CVE: CVE-2012-2301

In Ubercart 6.x-2.x, arbitrary PHP code can be executed by users with the "administer conditional actions" permission. This vulnerability is mitigated by the fact that this permission should only granted to trusted users.

Versions affected

  • Ubercart 6.x-2.x versions prior to 6.x-2.8.
  • Ubercart 7.x-3.x versions prior to 7.x-3.1.

Drupal core is not affected. If you do not use the contributed Ubercart module, there is nothing you need to do.


Install the latest version:

Additionally, in Drupal 6.x, ensure that only trusted users have roles that have been granted the "administer conditional actions" permission.

Also see the Ubercart project page.

Reported by

Fixed by

Coordinated by

Contact and More Information

The Drupal security team can be reached at security at drupal.org or via the contact form at http://drupal.org/contact.

Learn more about the Drupal Security team and their policies, writing secure code for Drupal, and securing your site.