The Drupal block class module allows users to add classes to any block through the block's configuration interface The class names in a block were not properly filtered. Someone with the ability to modify or create blocks could inject java script that would be rendered when viewing the block. Blockclass versions prior to 7.x-1.0 are affected.
ec7bd4f2b0130760b1ad706dd01c6bc46328b023aed6daade7ba77de5c659f50
* Advisory ID: DRUPAL-SA-CONTRIB-2012-032
* Project: Block Class [1] (third-party module)
* Version: 7.x
* Date: 2012-March-07
* Security risk: Moderately Critical [2]
* Exploitable from: Remote
* Vulnerability: Cross Site Scripting
-------- DESCRIPTION
---------------------------------------------------------
The block class module allows users to add classes to any block through the
block's configuration interface
The class names in a block were not properly filtered. Someone with the
ability to modify or create blocks could inject java script that would be
rendered when viewing the block.
-------- VERSIONS AFFECTED
---------------------------------------------------
* Blockclass versions prior to 7.x-1.0.
Drupal core is not affected. If you do not use the contributed Block Class
[3] module, there is nothing you need to do.
-------- SOLUTION
------------------------------------------------------------
Install the latest version:
* If you use the block class module for Drupal 7.x, upgrade to block class
7.x-1.1 [4]
See also the Block Class [5] project page.
-------- REPORTED BY
---------------------------------------------------------
* Katherine Senzee [6]
-------- FIXED BY
------------------------------------------------------------
* Berend de Boer [7] the module maintainer
-------- COORDINATED BY
------------------------------------------------------
* Michael Hess [8] of the Drupal Security Team
-------- 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 [9].
Learn more about the Drupal Security team and their policies [10], writing
secure code for Drupal [11], and securing your site [12].
[1] http://drupal.org/project/block_class
[2] http://drupal.org/security-team/risk-levels
[3] http://drupal.org/project/block_class
[4] http://drupal.org/node/1471090
[5] http://drupal.org/project/block_class
[6] http://drupal.org/user/139855
[7] http://drupal.org/user/143552
[8] http://drupal.org/user/102818
[9] http://drupal.org/contact
[10] http://drupal.org/security-team
[11] http://drupal.org/writing-secure-code
[12] http://drupal.org/security/secure-configuration