• Advisory ID: DRUPAL-SA-CONTRIB-2010-050
  • Project: CAPTCHA (third-party module)
  • Version: 5.x, 6.x
  • Date: 2010-May-19
  • Security risk: Not Critical
  • Exploitable from: Remote
  • Vulnerability: Cross Site Scripting

Description

The CAPTCHA module enables a site administrator to put a CAPTCHA form element (a simple challenge that is easy for humans, but hard for automated spam bots) on any form. The CAPTCHA module does not sanitize the CAPTCHA description that is added as help text to the CAPTCHA form element, allowing users with permissions to configure the CAPTCHA settings to insert arbitrary HTML and script code. Such a cross site scripting (XSS) attack may lead to a malicious user gaining full administrative access. This vulnerability is mitigated by the attacker needing the "administer CAPTCHA settings" permission in order to exploit it.

Versions affected

  • CAPTCHA module for Drupal 5.x versions prior to 5.x-3.3
  • CAPTCHA module for Drupal 6.x versions prior to 6.x-2.2

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

Solution

Install the latest version:

See also the CAPTCHA project page.

Reported by

mr.baileys

Fixed by

Stefaan Lippens (soxofaan), the CAPTCHA module maintainer

Contact

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