lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date: Wed, 16 Dec 2009 12:52:57 -0500
From: Justin Klein Keane <>
Subject: Drupal Sections Module XSS Vulnerability

The text of this announcment is also available at

Description of Vulnerability:
- - -----------------------------
Drupal ( is a robust content management system (CMS)
written in PHP and MySQL that provides extensibility through various third
party modules.  The Sections module (
"allows you to create sections within your site. Each section has an
installed template, theme or style attached to it."

The Sections module contains a cross site scripting vulnerability because it
does not properly sanitize output of section names before display.

Systems affected:
- - -----------------
Drupal 6.14 with Sections 6.x-1.2 was tested and shown to be vulnerable.

- - -------
XSS vulnerabilities may expose site administrative accounts to compromise
which could lead to web server process compromise.

Mitigating factors:
- - -------------------
The Sections module must be installed.  To carry out a Sections based XSS
proof of concept exploit below the attacker must have 'administer sections'

Proof of Concept:
- ---------------------
1.  Install Drupal 6.14
2.  Install Sections 6.x-1.2
3.  Enable the Sections module from Administer -> Site building -> Modules
4.  Click Administer -> Site building -> Sections
5.  Click the 'Add section' button
5.  Enter "<script>alert('xss');</script>" in the 'Name' text area
6.  Click the 'Add section' button to save the section and observe the
rendered JavaScript
7.  Click on the 'Sections' link in the navigation to observe the rendered

Technical details:
- ------------------------
The Sections module fails to sanitize the output of the section name before
display.  Applying the following patch fixes this vulnerability.

- -------
Applying the following patch mitigates these threats.

--- sections/ 2008-06-01 08:51:51.000000000 -0400
+++ sections.fixed/   2009-11-06 15:43:53.997416137 -0500
@@ -234,6 +234,7 @@ function theme_sections_admin_display_fo
   foreach (element_children($form['sections']) as $key => $id) {
     // Don't take form control structures.
     if (is_array($form['sections'][$id]['name'])) {
+      $form['sections'][$id]['name']['#value'] =
       $form['sections'][$id]['weight']['#attributes']['class'] =
       $rows[] = array(
         'data' => array(

Vendor Response
Upgrade to the latest version.

Justin C. Klein Keane

Content of type "text/html" skipped

Full-Disclosure - We believe in it.
Hosted and sponsored by Secunia -

Powered by blists - more mailing lists