[Security announcements] SA-CONTRIB-2009-001 - Project release - Multiple vulnerabilities


* Advisory ID: DRUPAL-SA-CONTRIB-2009-001

* Project: Project release (third-party module)

* Version: 5.x

* Date: 2009-January-07

* Security risk: Highly critical

* Exploitable from: Remote

* Vulnerabilities: Arbitrary file upload, Cross-site scripting (XSS)


The Project release module is a component within the broader Project [
http://drupal.org/project/project ] module. This announcement covers the
following two issues:

* Project release enables file attachments to create a specific version of
code to be downloaded by users. This module uses its own code to upload files so
the files are not validated by Drupal core's Upload module. The lack of
validation in Project release's upload mechanism enables a user with the
"maintain projects" permission to upload files with arbitrary extensions. Using
these files an attacker can perform cross site scripting attacks, and depending
on the server configuration, may also be able to execute arbitrary code.

Any projects that are associated with a CVS repository using the CVS
integration [ http://drupal.org/project/cvslog ] module are not vulnerable,
though you are still encouraged to upgrade.

Important Note

The steps above will stop malicious files from being uploaded, but will do
nothing to protect your site against files that have already been uploaded. Make
sure to carefully inspect the file system path and check for files with
extensions that should be forbidden. We recommend you remove any HTML file you
did not upload yourself. You should look for script tags, CSS includes,
Javascript includes, and onerror="" attributes if you need to review files

* The Project release module allows users to create releases of a project
which are then available for download. Users may be able to inject arbitrary
code on error pages produced by the Project release module by using a malformed

Wikipedia has more information about cross site scripting [
http://en.wikipedia.org/wiki/Cross-site_scripting ] (XSS).


* Project for Drupal 5.x prior to 5.x-1.3

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

---- SOLUTION ----

Install the latest version:

* Project 5.x-1.3 [ http://drupal.org/node/355708 ]

See also the Project module project page [ http://drupal.org/project/project ].

---- REPORTED BY ----

Both vulnerabilities were reported by Adam Light (aclight [
http://drupal.org/user/86358 ]) of the Drupal Security team [
http://drupal.org/security-team ].

---- CONTACT ----

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