• Advisory ID: DRUPAL-SA-CONTRIB-2011-045
  • Project: Rate (third-party module)
  • Version: 6.x, 7.x
  • Date: 2011-October-05
  • Security risk: Moderately critical
  • Exploitable from: Remote
  • Vulnerability: Cross Site Scripting (XSS)

Description

The Rate module provides flexible rate widgets. These widgets are refreshed via AJAX after voting. The AJAX callback does not correctly handle certain arguments obtained from the URL. By enticing a suitably privileged user to visit a specially crafted URL, a malicious user is able to insert arbitrary HTML and script code into the rate widget. Such a cross-site scripting attack may lead to the malicious user gaining administrative access.

Versions affected

  • rate 6.x-1.x versions prior to 6.x-1.3.
  • rate 7.x-1.x versions prior to 7.x-1.2.

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

Solution

Install the latest version:

  • If you use the Rate module for Drupal 6.x, upgrade to Rate 6.x-1.3
  • If you use the Rate module for Drupal 7.x, upgrade to Rate 7.x-1.2

See also the Rate project page.

Reported by

  • Zakaria Rachid

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.