Australia's Leading Computer Emergency Response Team

ESB-2008.0858 -- [Win][UNIX/Linux] -- A cross site scripting vulnerability has been identified in CCK (Drupal third-party module)
Date: 05 September 2008
Original URL: http://www.auscert.org.au/render.html?cid=1980&it=9801

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

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

                    ESB-2008.0858 -- [Win][UNIX/Linux]
        A cross site scripting vulnerability has been identified in
                      CCK (Drupal third-party module)
                             5 September 2008

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

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

Product:              CCK (Drupal third-party module)
Publisher:            Drupal
Operating System:     UNIX variants (UNIX, Linux, OSX)
                      Windows
Impact:               Cross-site Scripting
Access:               Remote/Unauthenticated

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


- - ------------SA-2008-048 - SITE DOCUMENTATION - PRIVILEGE ESCALATION-------


  * Advisory ID: DRUPAL-SA-2008-048
  
  * Project: CCK (third-party module)

  * Version: 5.x

  * Date: 2008-Sep-04

  * Security risk: Not critical

  * Exploitable from: Remote

  * Vulnerability: Cross site scripting

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

The contributed module Site Documentation intends to assist developers and
administrators when they start working with a new site by showing them
information from the database.

All users with the "access content" permission are able to use the module 
to list arbitrary tables from the database. In typical scenarios, both 
anonymous and authenticated users have the "access content" permission. 

Access to arbitrary tables enables an attacker to impersonate users by 
using SESSION IDs obtained from the database.  An attacker could use 
specifically crafted URLs to gain access to additional private information, 
including, but not limited to, all usernames, password hashes, and e-mail 
addresses.

- - ------------VERSIONS AFFECTED------------
    
  * CCK for Drupal 5.x prior to 5.x-1.8

Drupal core is not affected. The CCK RC releases for Drupal 6 are not 
affected. If you do not use the contributed CCK module on a Drupal 5 site,
there is nothing you need to do.

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

Install the latest version:

  * CCK 5.x-1.8 5.x-1.8 had two critical bugs
  * CCK 5.x-1.9 hotfix release - includes security fix and these critical 
    issue fixes.

See also the CCK project page.

- - ------------NOTE------------

If your theme uses field templates, you will need to manually change the 
function phptemplate_field (or possibly THEME_NAME_field) in your theme's
template.php:
change:
'label' => t($field['widget']['label']),
to:
'label' => check_plain(t($field['widget']['label']))


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

The cross site scripting issue was reported by Peter Wolanin from 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--------------------

AusCERT has made every effort to ensure that the information contained
in this document is accurate.  However, the decision to use the information
described is the responsibility of each user or organisation. 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.

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

iQCVAwUBSMDF6Sh9+71yA2DNAQKhLgP9GlLm/VWxVdZ2eg+3mCNwiJrdG4UxWHQp
mIeiJvEfZ2IPIg3AgiDQJ0/o9tm4OtHeNt6ymO03pqN+F0Etn7V7TF0w6gecT7wY
cn/kHiC6rWHyUWfNhmredBMnf0cCtheeHaK0df2djzM19C1rqvpjJViYiFqO5RO5
dx0Ty3/ufmw=
=AHot
-----END PGP SIGNATURE-----