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

                                CERT-Renater

                      Note d'Information No. 2012/VULN130
____________________________________________________________________

DATE                : 15/03/2012

HARDWARE PLATFORM(S): /

OPERATING SYSTEM(S) : Systems running FCKeditor for DRUPAL versions 6.x-2.x,
                           CKeditor for DRUPAL versions 6.x-1.x,7.x-1.x.

======================================================================
http://drupal.org/node/1482528
______________________________________________________________________

SA-CONTRIB-2012-040 - CKEditor and FCKeditor - multiple XSS, arbitrary
code execution


    * Advisory ID: DRUPAL-SA-CONTRIB-2012-040
    * Project: CKEditor, FCKeditor - WYSIWYG HTML editor (third-party
module)
    * Version: 6.x, 7.x
    * Date: 2012-March-14
    * Security risk: Highly critical
    * Exploitable from: Remote
    * Vulnerability: Cross Site Scripting, Cross Site Request Forgery,
Arbitrary PHP code execution

Description

CKEditor and its predecessor FCKeditor allow Drupal to replace
textarea fields with the (F)CKEditor - a visual HTML WYSIWYG editor.

The modules have an AJAX callback that filters text to prevent
Cross site scripting attacks on content edits. This AJAX callback
function contains a number of bugs which allow attackers to chose
which filter to execute on chosen text or bypass the filter entirely.

The vulnerability can be used to conduct Cross site scripting (XSS)
attacks on privileged users. Attackers can also execute arbitrary
PHP code if the core PHP module is enabled. This can happen either
directly or by enticing a privileged user to visit a page.

Direct execution of PHP code requires that the attacker has the
following privileges:

"access fckeditor" for FCKeditor 6.x
"access ckeditor" for CKEditor 6.x

No additional permissions are required to directly exploit the
PHP code execution flaw on CKEditor 7.x.


Versions affected

    * FCKeditor 6.x-2.x versions prior to 6.x-2.3.
    * CKEditor 6.x-1.x versions prior to 6.x-1.9.
    * CKEditor 7.x-1.x versions prior to 7.x-1.7.

Drupal core is not affected. If you do not use the contributed
CKEditor - WYSIWYG HTML editor module, there is nothing you need
to do.


Solution

Install the latest version:

    * If you use the FCKeditor module for Drupal 6.x, upgrade to FCKeditor
6.x-2.3.
    * If you use the CKEditor module for Drupal 6.x, upgrade to CKEditor
6.x-1.9.
    * If you use the CKEditor module for Drupal 7.x, upgrade to CKEditor
7.x-1.7.

See also the CKEditor - WYSIWYG HTML editor project page.


Reported by

    * Heine Deelstra of the Drupal Security Team

Fixed by

    * Wiktor Walc the module maintainer

Contact and More Information

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

Learn more about the Drupal Security team and their policies,
writing secure code for Drupal, and securing your site.


Categories: Drupal 6.x, Drupal 7.x


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

=========================================================
Les serveurs de référence du CERT-Renater
http://www.cru.fr/securite
http://www.renater.fr
=========================================================
+ CERT-RENATER          | tel : 01-53-94-20-44          +
+ 23 - 25 Rue Daviel    | fax : 01-53-94-20-41          +
+ 75013 Paris           | email: certsvp@renater.fr     +
=========================================================
