WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker »
  • Security Announcements »
  • Security Vulnerability (XINHA Editor)
  • Print
Pages: [1]   Go Down

Author Topic: Security Vulnerability (XINHA Editor)  (Read 37479 times)

doc

  • Guest
Security Vulnerability (XINHA Editor)
« on: October 24, 2007, 10:54:49 PM »
Dear community,

the forum member jozycrew just informed me that the WebsiteBaker WYSIWYG module XINHA has a security vulnerability.

What does it mean?
The bug allows any user to upload files to the WB MEDIA directory. The user does not require access to the WB backend!!! Depending on the connector settings, it may be possible to upload .htaccess files or PHP files, which would allow any user to take over full control of your website (e.g. read/delete database, pages directory ...).

Solution:
At the moment no fixed version of Xinha is available (I do not use Xinha and do not know it´s architecture).

For the time beeing, we highly recommend to deinstall Xinha from your server and to switch over to the latest release of the FCKEditor version (v2.75).

Another solution is to use the .htaccess passwort protection (requires a Apache webserver and permissions to upload a .htaccess and .htpasswd file to the .../modules/xinha/ folder).

Please read the following information to learn more about creating a HTACCESS restriction. A online password generator can be found here.

Note:
We have disabled the download links of the WYSIWYG editors Xinha and Tiny_MCE from the Add-ons repository.

Sorry for any unconvenience caused by this.
Christian Sommer (doc)

P.S.: Attached is a basic htaccess.txt file. You need to replace the path to your needs and to rename the file to .htaccess
The required path can be found by adding the following command to a page of type code:
echo WB_PATH;.

[gelöscht durch Administrator]
« Last Edit: October 24, 2007, 11:26:47 PM by doc »
Logged

davon

  • Guest
Re: Security Vulnerability (XINHA Editor)
« Reply #1 on: December 12, 2007, 02:09:39 PM »
Quote from: doc
At the moment no fixed version of Xinha is available

Are there any updates to expect in the near future about this?
Logged

doc

  • Guest
Re: Security Vulnerability (XINHA Editor)
« Reply #2 on: December 12, 2007, 02:50:08 PM »
No, seems no one is willing to do the required fixed, therefore we removed Xinha from the download list.

Regards Christian
Logged

Offline berny

  • Posts: 37
Re: Security Vulnerability (XINHA Editor)
« Reply #3 on: March 30, 2008, 05:44:13 PM »
Therefore an Idea:

In the modules/xinha/xinha/plugins/ImageManager/config.inc.php insert after

// Include the config file
require('../../../../../config.php');

 this code:

if(!$_SESSION['USER_ID']) {
    echo "please don´t hack";
    exit;
}

Its not realy a patch to observe the Vulnerability, but this code only allows registered Users to Uploade files.
Therfore unregistered User cannot uploade Files, in the most cases, this will be ok.

If someone will only Administrators (or a different Group of Users like "Registered") allow to upload, modify it like this:

$vulncheck = 0;
if($_SESSION['GROUP_NAME'] == "Administrators" OR $_SESSION['GROUP_NAME'] == "Registered") {
$vulncheck = 1;
}
if($vulncheck != 1) {
    echo "please don´t hack";
    exit;

}
Than only Administrators (or in this case Registered) can uploade files.


You only have to define the Usergroups, that can use this Module.

Maybe someone had an better Idea or will goon with this :?

(PS: Sorry for my english, its a long time ago, i learnd this in scool  :lol: )
Logged

doc

  • Guest
Re: Security Vulnerability (XINHA Editor)
« Reply #4 on: March 30, 2008, 07:44:20 PM »
Hello,

thanks for the fix. The posted fix does not resolve the problems that the module allows to bypass the groups/users permissions for the MEDIA folder set by WebsiteBaker. The solution we are after should be similar to what we have implemented for the FCKEditor module. In addition the existing WB module for Xinha needs to be updated to the latest Xinha release. However, this is one step into the right direction.

Regards Christian
« Last Edit: March 30, 2008, 10:33:25 PM by doc »
Logged

Offline berny

  • Posts: 37
Re: Security Vulnerability (XINHA Editor)
« Reply #5 on: April 01, 2008, 04:22:54 PM »
Hmmm, a bad thing:  :evil:
the vulnerability is in every Plugin, which allows to upload files!!!
Not only the ImageManger is a problem, also the InsertFile and other Plugins.

Therefore it seems to be better, to use the FCKEditor !!!

(i am sad, i liked xinha !!!)
Logged

Rosewood

  • Guest
Re: Security Vulnerability (XINHA Editor)
« Reply #6 on: July 29, 2008, 07:02:00 PM »
Thank you for this notice.  It helped me confirm what I had suspected.  Quite a few of the sites we recently inherited (and had not given a full sec audit to) were being hacked.  I've confirmed this exploit as their point of entry.
Logged

rrjbeans

  • Guest
Re: Security Vulnerability (XINHA Editor)
« Reply #7 on: August 02, 2008, 09:46:35 PM »
Quote from: doc on October 24, 2007, 10:54:49 PM
Note:
We have disabled the download links of the WYSIWYG editors Xinha and Tiny_MCE from the Add-ons repository.

Is TinyMCE still affected with this vulnerability?

Because according to the TinyMCE thread, John recently released a version marked "stable"...
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker »
  • Security Announcements »
  • Security Vulnerability (XINHA Editor)
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2