exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Hardened-PHP Project Security Advisory 2005-26.111

Hardened-PHP Project Security Advisory 2005-26.111
Posted Dec 31, 2005
Authored by Stefan Esser, Hardened-PHP Project | Site hardened-php.net

Hardened-PHP Project Security Advisory - TinyMCE Compressor versions 1.0.5 and below suffer from an unchecked user input vulnerability that can allow for cross site scripting and disclosure of arbitrary files.

tags | advisory, arbitrary, php, xss
SHA-256 | 5ba9a1a6b5a7b435020260334850fe74a866e04070aad02a7a81f636e1114fd9

Hardened-PHP Project Security Advisory 2005-26.111

Change Mirror Download
Hash: SHA1

Hardened-PHP Project

-= Security Advisory =-

Advisory: TinyMCE Compressor Vulnerabilities
Release Date: 2005/12/29
Last Modified: 2005/12/29
Author: Stefan Esser [sesser@hardened-php.net]

Application: TinyMCE Compressor <= 1.0.5
Applications that bundle it like Wordpress 2.0
Severity: Unchecked user input is directly used within filenames
or printed into the output buffer which allows disclosure
of arbitrary files and XSS attacks
Risk: Medium
Vendor Status: Vendor has released an updated version
References: http://www.hardened-php.net/advisory_262005.111.html


TinyMCE is a platform independent web based Javascript HTML WYSIWYG
editor control released as Open Source under LGPL by Moxiecode
Systems AB. It has the ability to convert HTML TEXTAREA fields or
other HTML elements to editor instances. TinyMCE is very easy to
integrate into other CMS systems.

The TinyMCE Compressor is a PHP script available by the TinyMCE
developers that compressed the generated JavaScript up to 70% to
greatly increase the speed of TinyMCE.

A quick audit of the compressor script revealed that several
user supplied input variables are not checked and used directly to
construct filenames for files that are returned to the user.
Additionally some variables are directly printed to the request
body. This can be used by attackers to not only view files on the
server but also for Cross Site Scripting (XSS) attacks.


TinyMCE optionally comes with a PHP script that handles compression
of generated JavaScript output up to 70% and is used to improve the
speed of TinyMCE greatly. TinyMCE as HTML WYSIWYG editor is often
bundled with 3rd party applications, like the recently released
Wordpress 2.0 blogging software.

The TinyMCE compressor script allows the selection of things like
language, plugins, themes from within URL variables and does not
properly validate them. Because there is no check enforced on the
content of these variables it is possible to specify not only
illegal but also filenames outside of the dedicated directories.
It is only required to truncate the end of the filename with for
example an ASCII NUL. Which is for example not possible when the
server is running the latest version of the Hardening-Patch for PHP.

If the attacker succeeds in supplying a name of a file reachable by
the webserver user TinyMCE Compressor will print it's content into
the request body, leading to a file disclosure vulnerability. It
is obvious that if the attacker is able to inject JavaScript into
a file on the server and is able to include this file, that he can
use this for Cross Site Scripting (XSS) attacks.

Additionally to the file disclosure vulnerability variables like
'index' are directly printed into the request body and therefore
it is possible to directly inject any kind of HTML/JavaScript tags
into the output. It is obvious that this leads to possible XSS

Proof of Concept:

The Hardened-PHP project is not going to release exploits for
this vulnerability to the public.

Disclosure Timeline:

27. December 2005 - Disclosed vulnerability to vendor
27. December 2005 - During the following coffee break the
vendor response arrived
27. December 2005 - Five hours after our notification a
fixed version is released, unfortunately
the fix was incomplete
29. December 2005 - Vendor releases the corrected version
29. December 2005 - Public Disclosure


It is strongly recommended to upgrade to the new version of
TinyMCE Compressor which you can download at:


Additionally we recommend installing our Hardening-Patch for
PHP which makes part of the discovered vulnerabilities un-



pub 1024D/0A864AA1 2004-04-17 Hardened-PHP Signature Key
Key fingerprint = 066F A6D0 E57E 9936 9082 7E52 4439 14CC 0A86 4AA1

Copyright 2005 Stefan Esser. All rights reserved.

Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org


Login or Register to add favorites

File Archive:

December 2022

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    2 Files
  • 2
    Dec 2nd
    12 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    14 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags


packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By