Accessibility

Security bulletin

Hotfix available for potential ColdFusion 8 input sanitization issue

Release date: July 8, 2009

Last Updated: August 19, 2009

Vulnerability identifier: APSB09-09

CVE number: CVE-2009-2265

Platform: All Platforms

Summary

A vulnerability in FCKEditor, which is included as part of ColdFusion 8, could allow a remote attacker to upload files in arbitrary directories which could lead to a system compromise. This issue is remotely exploitable. There are reports that this issue is being exploited in the wild.

Affected software versions

ColdFusion 8, ColdFusion 8.0.1

Solution

Adobe recommends affected ColdFusion customers update their installation using the instructions below:
NOTE: ColdFusion 8 customers who have not already done so should first update to ColdFusion 8.0.1. A hotfix for ColdFusion 8.0 is also available, see below for more details.

ColdFusion 8.0.1

  1. Download the hot fix. (10K)
  2. Open the ColdFusion Administrator and select the System Information Page.
  3. Next to the Update File Field, select the browse button and browse to the downloaded jar file. Select the hf801-77218.jar and click submit.
  4. Take a backup of /CFIDE/scripts/ajax/FCKeditor folder outside of the webroot.
  5. Download and unzip the provided CFIDE.zip file.
  6. Merge the unzipped CFIDE folder with the existing CFIDE located at the webroot, overwriting the files in the existing CFIDE folder when prompted.
  7. Delete the following files cf5_upload.cfm, cf5_connector.cfm from under cfwebroot\CFIDE\scripts\ajax\FCKeditor\editor\filemanager\connectors\cfm.
  8. Restart ColdFusion.

Optional: To enable file uploads in FCKeditor when using the CFTEXTAREA tag with richtext, follow these steps:

  1. Ensure that access to the cfm page using CFTEXTAREA richtext=true is restricted only to users with a valid login.
  2. Edit jvm.config file and add the JVM argument “–Dcoldfusion.fckupload=true”.
  3. Edit cfwebroot/CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/Config.cfm and set Config.Enabled = true.
  4. Set sessionmanagement\clientmanagement in Application.cfc or Application.cfm to true in the application that uses the cftextarea tag with attribute richtext as true.

The ColdFusion hot fix JAR file does not need to be retained after installing it with the ColdFusion Administrator. The file has been copied into the correct location. The ColdFusion hot fix JAR file will appear as a new entry in the System Information list.

In case of a MultiServer installation, this hotfix needs to be applied to all Coldfusion server instances. If there are multiple CFIDE directories, all of them should be updated properly.

Hotfix applied is installed in the cf_root\lib\updates for standard install and Cfusion-ear/Cfusion-war/WEB-INF/cfusion/lib/updates for J2EE and multiserver install. The hotfix hf801-77218.jar file will appear in as a new entry in the System Information classpath list and also in the Update Level field. In cfwebroot/CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/Config.cfm file, confirm Config.Enabled is false.

ColdFusion 8.0

ColdFusion 8.0 ships with the default value of config.Enabled in the editor/filemanager/connectors/cfm/config.cfm file set to false, which mitigates this issue. ColdFusion 8.0 customers unable to update to ColdFusion 8.0.1 can follow the instructions below to further mitigate this issue:

  1. Download the hot fix. (10K)
  2. Open the ColdFusion Administrator and select the System Information Page.
  3. Next to the Update File Field, select the browse button and browse to the downloaded jar file. Select the hf800-77218.jar and click submit.
  4. Take a backup of /CFIDE/scripts/ajax/FCKeditor folder outside of the webroot.
  5. Delete the FCKeditor folder in /CFIDE/scripts/ajax.

  6. Download and unzip the provided CFIDE-CF8_0.zip file.
    1. Replace the FCKeditor folder to /CFIDE/scripts/ajax.
    2. Replace the cfrichtexteditor.js in /CFIDE/scripts/ajax/package.
  7. Restart ColdFusion.

In case of a MultiServer installation, this hotfix needs to be applied to all Coldfusion server instances. If there are multiple CFIDE directories, all of them should be updated properly.

Hotfix applied is installed in the cf_root\lib\updates for standard install and Cfusion-ear/Cfusion-war/WEB-INF/cfusion/lib/updates for J2EE and multiserver install. The hotfix hf800-77218.jar file will appear in as a new entry in the System Information classpath list and also in the Update Level fieldIn cfwebroot/CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/Config.cfm file ,confirm Config.Enabled is false.

Optional: To enable file uploads in FCKeditor when using the CFTEXTAREA tag with richtext, follow these steps:

  1. Ensure that access to the cfm page using CFTEXTAREA richtext=true is restricted only to users with a valid login.
  2. Edit jvm.config file and add the JVM argument “–Dcoldfusion.fckupload=true”.
  3. Edit cfwebroot/CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/Config.cfm and set Config.Enabled = true.
  4. Set sessionmanagement\clientmanagement in Application.cfc or Application.cfm to true in the application that uses the cftextarea tag with attribute richtext as true.

Severity rating

Adobe categorizes this as a critical issue and recommends affected users patch their installations.

Details

A vulnerability in FCKEditor, which is included as part of ColdFusion 8, could allow a remote attacker to upload files in arbitrary directories which could lead to a system compromise. This hotfix updates the version of FCKEditor included with ColdFusion 8, turns off file upload capabilities by default, restricts access to cfm files in the FCKeditor\editor\filenamanger directory, and limits file upload capabilities to users with valid sessions. This issue is remotely exploitable. There are reports that this issue is being exploited in the wild.

Acknowledgments

Adobe would like to thank Jeremy Prevost of Northwestern University (CVE-2009-2265) for reporting this vulnerability and for working with Adobe to help protect our customers’ security.

Revisions

August 19, 2009 - Solution instructions updated to Bulletin.
July 9, 2009 - Bulletin updated with Acknowledgment and information on ColdFusion 8.0 hotfix
July 8, 2009 - Bulletin first created

Adobe Disclaimer

License agreement

By using software of Adobe Systems Incorporated or its subsidiaries ("Adobe"); you agree to the following terms and conditions. If you do not agree with such terms and conditions; do not use the software. The terms of an end user license agreement accompanying a particular software file upon installation or download of the software shall supersede the terms presented below.

The export and re-export of Adobe software products are controlled by the United States Export Administration Regulations and such software may not be exported or re-exported to Cuba; Iran; Iraq; Libya; North Korea; Sudan; or Syria or any country to which the United States embargoes goods. In addition; Adobe software may not be distributed to persons on the Table of Denial Orders; the Entity List; or the List of Specially Designated Nationals.

By downloading or using an Adobe software product you are certifying that you are not a national of Cuba; Iran; Iraq; Libya; North Korea; Sudan; or Syria or any country to which the United States embargoes goods and that you are not a person on the Table of Denial Orders; the Entity List; or the List of Specially Designated Nationals. If the software is designed for use with an application software product (the "Host Application") published by Adobe; Adobe grants you a non-exclusive license to use such software with the Host Application only; provided you possess a valid license from Adobe for the Host Application. Except as set forth below; such software is licensed to you subject to the terms and conditions of the End User License Agreement from Adobe governing your use of the Host Application.

DISCLAIMER OF WARRANTIES: YOU AGREE THAT ADOBE HAS MADE NO EXPRESS WARRANTIES TO YOU REGARDING THE SOFTWARE AND THAT THE SOFTWARE IS BEING PROVIDED TO YOU "AS IS" WITHOUT WARRANTY OF ANY KIND. ADOBE DISCLAIMS ALL WARRANTIES WITH REGARD TO THE SOFTWARE; EXPRESS OR IMPLIED; INCLUDING; WITHOUT LIMITATION; ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE; MERCHANTABILITY; MERCHANTABLE QUALITY OR NONINFRINGEMENT OF THIRD PARTY RIGHTS. Some states or jurisdictions do not allow the exclusion of implied warranties; so the above limitations may not apply to you.

LIMIT OF LIABILITY: IN NO EVENT WILL ADOBE BE LIABLE TO YOU FOR ANY LOSS OF USE; INTERRUPTION OF BUSINESS; OR ANY DIRECT; INDIRECT; SPECIAL; INCIDENTAL; OR CONSEQUENTIAL DAMAGES OF ANY KIND (INCLUDING LOST PROFITS) REGARDLESS OF THE FORM OF ACTION WHETHER IN CONTRACT; TORT (INCLUDING NEGLIGENCE); STRICT PRODUCT LIABILITY OR OTHERWISE; EVEN IF ADOBE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Some states or jurisdictions do not allow the exclusion or limitation of incidental or consequential damages; so the above limitation or exclusion may not apply to you.