copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Training
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2007.0978 -- [Win][UNIX/Linux] -- DRUPAL CORE - SQL INJECTION POSSIBLE WHEN CERTAIN CONTRIBUTED MODULES ARE ENABLED

Date: 06 December 2007

Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                    ESB-2007.0978 -- [Win][UNIX/Linux]
             DRUPAL CORE - SQL INJECTION POSSIBLE WHEN CERTAIN
                      CONTRIBUTED MODULES ARE ENABLED
                              6 December 2007

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              Drupal Core 4.7.x, 5.x
Publisher:            Drupal
Operating System:     UNIX variants (UNIX, Linux, OSX)
                      Windows
Impact:               Execute Arbitrary Code/Commands
Access:               Remote/Unauthenticated

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

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


- ------------SA-2007-031 - DRUPAL CORE - SQL INJECTION POSSIBLE WHEN CERTAIN
CONTRIBUTED MODULES ARE ENABLED------------

  * Advisory ID: DRUPAL-SA-2007-031

  * Project: Drupal core

  * Version: 4.7.x, 5.x

  * Date: 2007-December-05

  * Security risk: Moderately critical

  * Exploitable from: Remote

  * Vulnerability: SQL Injection

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

The function taxonomy_select_nodes() directly injects variables into SQL
queries instead of using placeholders. While taxonomy module itself validates
the input passed to taxonomy_select_nodes(), this is a weakness in Drupal core.
Several contributed modules, such as taxonomy_menu [
http://drupal.org/project/taxonomy_menu ], ajaxLoader [
http://drupal.org/project/ajaxloader ], and ubrowser [
http://drupal.org/project/uBrowser ], directly pass user input to
taxonomy_select_nodes(), enabling SQL injection attacks by anonymous users.  

To learn more about SQL injection, please read this article [
http://en.wikipedia.org/wiki/SQL_injection ].

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

  * Drupal 4.7.x before Drupal 4.7.9

  * Drupal 5.x before Drupal 5.4

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

Install the latest version:

  * If you are running Drupal 4.7.x then upgrade to Drupal 4.7.9 [
http://ftp.drupal.org/files/projects/drupal-4.7.9.tar.gz ].

  * If you are running Drupal 5.x then upgrade to Drupal 5.4 [
http://ftp.drupal.org/files/projects/drupal-5.4.tar.gz ].

If you are unable to upgrade immediately, you can apply a patch to secure your
installation until you are able to do a proper upgrade. 

  * To patch Drupal 4.7.8 use SA-2007-031-4.7.8.patch [
http://drupal.org/files/sa-2007-031/SA-2007-031-4.7.8.patch ].

  * To patch Drupal 5.3 use SA-2007-031-5.3.patch [
http://drupal.org/files/sa-2007-031/SA-2007-031-5.3.patch ].

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

  * Nadid Skywalker

  * Ivan Sergio Borgonovo

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

        http://www.auscert.org.au/render.html?cid=1980

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:

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

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
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.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBR1c08Ch9+71yA2DNAQI/tgP/Qjix6xefGrW0BTv68n6vNuVKB437AABn
Zr6AxT8+UgiF//lhAFeR/2anw/Q0ufAnxvWtly1CsJYW+fgBUeMppROLtl4hMtiX
gwMcA37bIzO6aYuPHahTY8+ewnok+DdV+rwzpKo42M31O1wNEASzvQVA/AuMzAC3
rv0qwwa8ZXA=
=43nN
-----END PGP SIGNATURE-----