Drupal ManageSite 6.x-1.0 XSS Vulnerability

26 January 2012

Description of Vulnerability:

Drupal (http://drupal.org) is a robust content management system (CMS) written in PHP and MySQL. The Drupal ManageSite module (https://drupal.org/project/managesite) contains a persistent cross site scripting (XSS) vulnerability due to the fact that it fails to sanitize region names before display.

Systems affected:

Drupal 6.22 with ManageSite 6.x-1.0 was tested and shown to be vulnerable

Impact

User could inject arbitrary scripts into pages affecting site users. This could result in administrative account compromise leading to web server process compromise.

Mitigating factors:

In order to execute arbitrary script injection malicious users must have the ability to administer managesite.

Proof of Concept Exploit:

  1. Install and enable the ManageSite module
  2. At ?q=admin/build/managesite/items/1 create a new category called "<script>alert('xss');</script>" and save it
  3. View the persistent JavaScript alert at ?q=admin/build/managesite/items/1

Vendor Response

Upgrade to the latest version (SA-CONTRIB-2012-015).