Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

                    ESB-2008.0686 -- [Win][UNIX/Linux]
     Drupal - Multiple vulnerabilities in core and third party module
                               10 July 2008


        AusCERT Security Bulletin Summary

Product:              Druapl Core
                      OpenID (third party module)
Publisher:            Drupal
Operating System:     Windows
                      UNIX variants (UNIX, Linux, OSX)
Impact:               Execute Arbitrary Code/Commands
                      Cross-site Scripting
                      Cross-site Request Forgery
                      Provide Misleading Information
Access:               Remote/Unauthenticated

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

Comment: This advisory contains two (2) drupal advisories.

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

- ------------SA-2008-044 - DRUPAL CORE - MULTIPLE VULNERABILITIES------------

  * Advisory ID: DRUPAL-SA-2008-044

  * Project: Drupal core

  * Version: 5x, 6.x

  * Date: 2008-July-9

  * Security risk: Moderately critical

  * Exploitable from: Remote

  * Vulnerability: Multiple vulnerabilities

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

Multiple vulnerabities and weaknesses were discovered in Drupal. Neither of
these are readily exploitable.


Free tagging taxonomy terms can be used to insert arbitrary script and HTML
code (cross site scripting [ http://en.wikipedia.org/wiki/Cross-site_scripting ]
or XSS) on node preview pages. A successful exploit requires that the victim
selects a term containing script code and chooses to preview the node. This
issue affects Drupal 6.x only.

Some values from OpenID [ http://openid.net/what/ ] providers are output
without being properly escaped, allowing malicious providers to insert arbitrary
script and HTML code (XSS) into user pages. This issue affects Drupal 6.x only.

filter_xss_admin() has been hardened to prevent use of the object HTML tag in
administrator input.


Translated strings (5.x, 6.x) and OpenID identities (6.x) are immediately
deleted upon accessing a properly formatted URL, making such deletion vulnerable
to cross site request forgeries [
http://en.wikipedia.org/wiki/Cross-site_request_forgery ] (CSRF). This may lead
to unintended deletion of translated strings or OpenID identities when a
sufficiently privileged user visits a page or site created by a malicious


When contributed modules such as Workflow NG terminate the current request
during a login event, user module is not able to regenerate the user's session.
This may lead to a session fixation attack [
http://en.wikipedia.org/wiki/Session_fixation ], when a malicious user is able
to control another users' initial session ID. As the session is not regenerated,
the malicious user may use the 'fixed' session ID after the victim authenticates
and will have the same access. This issue affects both Drupal 5 and Drupal 6.


Schema API uses an inappropriate placeholder for 'numeric' fields enabling SQL
injection [ http://en.wikipedia.org/wiki/SQL_injection ] when user-supplied data
is used for such fields.This issue affects Drupal 6 only.

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

  * Drupal 5.x before version 5.8

  * Drupal 6.x before version 6.3

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

Install the latest version:

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

  * If you are running Drupal 6.x then upgrade to Drupal 6.3 [
http://ftp.drupal.org/files/projects/drupal-6.3.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. The patches fix security
vulnerabilities, but do not contain other fixes which were released in these

  * To patch Drupal 5.7 use SA-2008-044-5.7.patch [
http://drupal.org/files/sa-2008-044/SA-2008-044-5.7.patch ].

  * To patch Drupal 6.2 use SA-2008-044-6.2.patch [
http://drupal.org/files/sa-2008-044/SA-2008-044-6.2.patch ].

- ------------NOTE FOR SITE ADMINISTRATORS------------

Drupal 5.8 and 6.3 no longer support the use of the object HTML tag in many
text supplied by administrators. Such texts include the mission statement and
taxonomy term descriptions.

- ------------NOTES FOR DEVELOPERS------------

Drupal 6.3 has the new db_query placeholder %n for numeric fields (DECIMAL,
NUMERIC). Custom queries should be updated to reflect this change.

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

  * The session fixation issue was reported by Erich C. Beyrent.

  * The Taxonomy term XSS issue was reported by John Morahan [
http://drupal.org/user/58170 ].

  * The OpenID CSRF issue was reported by Peter Wolanin [
http://drupal.org/user/49851 ] (Drupal security team).

  * The OpenID XSS issue was reported by Neil Drumm [
http://drupal.org/user/3064 ] (Drupal security team).

  * The locale CSRF issue and the numeric SQL injection issue were reported by
Heine Deelstra [ http://drupal.org/user/17943 ] (Drupal 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 ].

- ------------SA-2008-045 - OPENID - MULTIPLE VULNERABILITIES------------

  * Advisory ID: DRUPAL-SA-2008-045

  * Project: OpenID (third-party module)

  * Version: 5.x

  * Date: 2008-July-9

  * Security risk: Less critical

  * Exploitable from: Remote

  * Vulnerability: Cross site scripting, Cross site request forgeries

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

The OpenID module for Drupal 5.x allows uses to create an account or log into a
Drupal site using one or more OpenID identities.  Find out more about OpenID at
[ http://openid.net ].

Two vulnerabilities and weaknesses were discovered in the contributed OpenID


Some information sent from the OpenID provider is not escaped before it is

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


The Drupal Forms API protects against Cross Site Request Forgeries (CSRF),
where a malicious site can cause a user to unintentionally take actions on
another site where they are authenticated.  The OpenID module allowed OpenID
identities to be deleted simply by clicking a link.  Thus, a user could have all
of their identities removed and no longer be able to log in with OpenID .

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

  * OpenID for Drupal 5.x before version 5x.-1.2

Drupal 5.x core is not affected. If you do not use the contributed OpenID
module for Drupal 5.x, there is nothing you need to do.

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

Install the latest version:

  * If you currently use OpenID 5.x-1.0 or 5.x-1.1 upgrade to OpenID 5.x-1.2 [
http://drupal.org/node/280593 ]

See also the OpenID project page [ http://drupal.org/project/openid ].

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

  * Neil Drumm (drumm [ http://drupal.org/user/3064 ]) of the Drupal Security

  * Peter Wolanin (pwolanin [ http://drupal.org/user/49851 ])  of the Drupal
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 ].

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