Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

                    ESB-2008.0106 -- [Win][UNIX/Linux]
    Drupal Comment upload module - Arbitrary file upload vulnerability
                              6 February 2008


        AusCERT Security Bulletin Summary

Product:              Drupal Comment upload module versions 4.7.x and 5.x
Publisher:            Drupal
Operating System:     UNIX variants (UNIX, Linux, OSX)
Impact:               Cross-site Scripting
                      Execute Arbitrary Code/Commands
Access:               Remote/Unauthenticated
CVE Names:            CVE-2008-0569

Original Bulletin:    http://drupal.org/node/216024

Revision History:     February 6 2008: Added CVE
                      January 31 2008: Initial Release

- --------------------------BEGIN INCLUDED TEXT--------------------

- ------------SA-2008-015 - COMMENT UPLOAD - ARBITRARY FILE UPLOAD  ------------

  * Advisory ID: DRUPAL-SA-2008-015

  * Project: Comment upload (third-party module)

  * Version: 4.7.x, 5.x

  * Date: 2007-January-30

  * Security risk: Highly critical

  * Exploitable from: Remote

  * Vulnerability: Arbitrary file upload

- ------------DESCRIPTION------------

Comment upload enables file attachments for comments. To do so it uses and
subverts various functions from the upload module that are present in Drupal
core. In certain, common cases, comment upload passes incorrect data to the
upload validation functions, resulting in a validation bypass, which enables a
user with the "upload files" permission to upload files with arbitrary
Using these files an attacker can perform cross site scripting attacks, and
depending on the server configuration, may also be able to execute arbitrary

- ------------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

- ------------VERSIONS AFFECTED------------

  * Comment upload for Drupal 4.7.x prior to 4.7.x-0.1

  * Comment upload for Drupal 5.x prior to 5.x-0.1

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

- ------------SOLUTION------------

Install the latest version:

  * If you use Drupal 4.7.x install comment upload 4.7.x-0.1 [
http://drupal.org/node/216036 ]

  * If you use Drupal 5.x install comment upload 5.x-0.1 [
http://drupal.org/node/216035 ]

See also the Comment upload project page [
http://drupal.org/project/comment_upload ]. 

- ------------REPORTED BY------------

webernet [ http://drupal.org/user/78438 ] reported an issue that was traced
back by the security team to comment upload.

- ------------CONTACT------------

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

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:


If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:


Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.

Comment: http://www.auscert.org.au/render.html?it=1967