Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

                        Drupal core critical update
                             17 September 2009


        AusCERT Security Bulletin Summary

Product:           Drupal core
Publisher:         Drupal
Operating System:  UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Cross-site Request Forgery     -- Existing Account      
                   Unauthorised Access            -- Existing Account      
                   Create Arbitrary Files         -- Existing Account      
                   Provide Misleading Information -- Remote/Unauthenticated
Resolution:        Patch/Upgrade

Original Bulletin: 

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

  * Advisory ID: DRUPAL-SA-CORE-2009-008
  * Project: Drupal core
  * Version: 5.x, 6.x
  * Date: 2009-September-16
  * Security risk: Critical
  * Exploitable from: Remote
  * Vulnerability: Multiple vulnerabilities

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

Multiple vulnerabilities and weaknesses were discovered in Drupal.
.... OpenID association cross site request forgeries

The OpenID module in Drupal 6 allows users to create an account or log into a
Drupal site using one or more OpenID identities. The core OpenID module does
not correctly implement Form API for the form that allows one to link user
accounts with OpenID identifiers. A malicious user is therefore able to use
cross site request forgeries [1] to add attacker controlled OpenID identities
to existing accounts. These OpenID identities can then be used to gain access
to the affected accounts. This issue affects Drupal 6.x only.
.... OpenID impersonation

The OpenID module is not a compliant implementation of the OpenID
Authentication 2.0 specification. An implementation error allows a user to
access the account of another user when they share the same OpenID 2.0
provider. This issue affects Drupal 6.x only.
.... File upload

File uploads with certain extensions are not correctly processed by the File
API. This may lead to the creation of files that are executable by Apache.
The .htaccess that is saved into the files directory by Drupal should
normally prevent execution. The files are only executable when the server is
configured to ignore the directives in the .htaccess file. This issue affects
Drupal 6.x only.
.... Session fixation

Drupal doesn't regenerate the session ID when an anonymous user follows the
one time login link used to confirm email addresses and reset forgotten
passwords. This enables a malicious user to fix and reuse the session id of a
victim under certain circumstances. This issue affects Drupal 5.x only.
- ---------------------------------------------------

  * Drupal 6.x before version 6.14.
  * Drupal 5.x before version 5.20.

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

Install the latest version:
  * If you are running Drupal 6.x then upgrade to Drupal 6.14 [2].
  * If you are running Drupal 5.x then upgrade to Drupal 5.20 [3].

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. Theses patches
fix the security vulnerabilities, but do not contain other fixes which were
released in Drupal 6.14 or Drupal 5.20.
  * To patch Drupal 6.13 use SA-CORE-2009-008-6.13.patch [4].
  * To patch Drupal 5.19 use SA-CORE-2009-008-5.19.patch [5].

*Important note*: Some users using OpenID might not be able to use the
existing OpenID associations to login after the upgrade. These users should
use the one time login via password recovery to get access to their user
account and re-add desired associations. These users likely had issues with
OpenID logins prior to the upgrade.
- -------- REPORTED BY  
- ---------------------------------------------------------

The session fixation issue was reported by Noel Sharpe [6]. OpenID
impersonation was reported by Robert Metcalf [7]. OpenID association CSRF was
reported by Heine Deelstra [8] (*). The file upload issue was reported by
Heine Deelstra [9] (*). (*) Member of the Drupal security team
- -------- FIXED BY  
- ------------------------------------------------------------

The session fixation issue was fixed by Jakub Suchy [10]. The OpenID and file
upload issues were fixed by Heine Deelstra [11].
- -------- CONTACT  
- -------------------------------------------------------------

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

[1] http://en.wikipedia.org/wiki/Cross-site_request_forgery
[2] http://ftp.drupal.org/files/projects/drupal-6.14.tar.gz
[3] http://ftp.drupal.org/files/projects/drupal-5.20.tar.gz
[4] http://drupal.org/files/sa-core-2009-008/SA-CORE-2009-008-6.13.patch
[5] http://drupal.org/files/sa-core-2009-008/SA-CORE-2009-008-5.19.patch
[6] http://drupal.org/user/551958
[7] http://drupal.org/user/581142
[8] http://drupal.org/user/17943
[9] http://drupal.org/user/17943
[10] http://drupal.org/user/31977
[11] http://drupal.org/user/17943

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