Get XOOPS XOOPS FAQ Forums News Themes Modules
News World of XOOPS Developers Hacks Modules Themes Archive Submit News

XOOPS vs. Herko Coomans

Make a donation

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Search

Local Support Sites

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Google GUI hacks instant-zero jQuery module news Nordic Olédrion oxygen PageRank security SEO simple-XOOPS sport tag Theme wiki xoops

New Users

Registering user

# 96568

dvsshoescom

Welcome to XOOPS!

Archives

XOOPS Code hosted on SourceForge

XOOPS 2.3.2a - Security Release

Posted by phppp on 2008/11/26 1:30:00 (6340 reads) | Posted on Security
The XOOPS Development Team is pleased to announce the release of XOOPS 2.3.2a

This release is solely for a couple of critical security fixes, including an XSS vulnerability reported by Digital Research Group, potential local file inclusion vulnerability reported by DSG, Autologin bug reported by Dylian and a backward bug in data synchronization reported by boy0917.

All XOOPS 2.3.x users are highly recommended to upgrade to this version ASAP.

XOOPS 2.0 and 2.2 versions are not vulnerable to the security issues addressed here. However, all 2.0 and 2.2 users who have the Protector module installed are advised to upgrade to the version included in this package.

Download from Sourceforge repository.

System requirements
-----------------------------------

PHP:
Any PHP version >= 4.3 (PHP 4.2.x may work but is not officially supported, PHP 5.0+ is strongly recommended)

MySQL:
MySQL server 3.23+ (MySQL 5.0+ is strongly recommended)

Web server:
Any server supporting the required PHP version (Apache highly recommended)


Downloading XOOPS 2.3.2a
-----------------------------------

Your can get this release package from the sourceforge.net file repository.
Both .zip and .gz archives are provided.


Installing XOOPS 2.3.2a
-----------------------------------

1. Copy the content of the htdocs/ folder where it can be accessed by your server
2. Ensure mainfile.php and uploads/ are writable by the web server
3. For security considerations, you are encouraged to move directories "/xoops_lib" (for XOOPS libraries) and "/xoops_data" (for XOOPS data) out of document root, or even change the folder names.
4. Make the directory of xoops_data/ writable; Create and make the directories of xoops_data/caches/, xoops_data/caches/xoops_cache/, xoops_data/caches/smarty_cache/ and xoops_data/caches/smarty_compile/ writable.
5. Access the folder where you installed the htdocs/ files using your web browser to launch the installation wizard

Installing Protector in XOOPS 2.3.2a
-----------------------------------
We also highly recommend the installation of the PROTECTOR module which will bring additional security protection and logging capabilities to your site:

To install Protector module for the first time with a new installation of XOOPS 2.3.2a, copy /extras/mainfile.dist.php.protector to /htdocs/mainfile.dist.php BEFORE installing XOOPS.

If you are upgrading an existing XOOPS Website (see below how to do it), and Protector is already installed there, copy /extras/mainfile.dist.php.protector to /upgrade/upd-2.0.18-to-2.3.0/mainfile.dist.php BEFORE upgrading XOOPS.



Upgrading from a previous version
-----------------------------------

As always, make sure you have a fresh BACKUP before you upgrade!!!

Upgrading from XOOPS 2.3.x (easy way)
1. Get the update package from the sourceforge file repository
2. Overwrite your existing files with the new ones
3. Move the "upgrade" folder inside the "htdocs" folder (it's been kept out as it's not needed for full installs) on your local machine
4. Access /upgrade/ with a browser, and follow the instructions
5. Follow the instructions to update your database
6. Delete the upgrade folder from your server
7. Update the "system" module from the modules administration interface, other modules, especially "profile" are recommended to update as well


Upgrading from XOOPS 2.0.* above 2.0.14 and 2.2.* (using the full package)
1. Move the "upgrade" folder inside the "htdocs" folder (it's been kept out as it's not needed for full installs) on your local machine
2. Delete htdocs/mainfile.php, htdocs/install/, htdocs/cache/, htdocs/extras/, htdocs/template_c/, htdocs/themes/ and htdocs/uploads/ from the "htdocs" folder on your LOCAL machine
3. Upload the content of the htdocs folder on your LOCAL machine over your existing files on your server
4. For security considerations, you are encouraged to move directories xoops_lib (for XOOPS libraries) and xoops_data (for XOOPS data) out of document root, or even change the folder names.
5. Make the directory of xoops_data/ writable; Create and make the directories of xoops_data/caches/, xoops_data/caches/xoops_cache/, xoops_data/caches/smarty_cache/ and xoops_data/caches/smarty_compile/ writable.
6. Ensure the server can write to mainfile.php
7. Access /upgrade/ with a browser, and follow the instructions
8. Follow the instructions to update your database
9. Write-protect mainfile.php again
10. Delete the upgrade folder from your server
11. Update the "system" module from the modules administration interface, other modules are recommended to update as well


Upgrading from any XOOPS ranging from 2.0.7 to 2.0.13.2 (using the full package):
1. Move the "upgrade" folder inside the "htdocs" folder (it's been kept out as it's not needed for full installs) on your LOCAL machine
2. Delete htdocs/mainfile.php, htdocs/install/, htdocs/cache/, htdocs/extras/, htdocs/template_c/, htdocs/themes/ and htdocs/uploads/ from the "htdocs" folder on your LOCAL machine
3. Upload the content of the htdocs folder on your LOCAL machine over your existing files on your server
4. Delete the following folders and files from your server (they belong to an old version):
* class/smarty/core
* class/smarty/plugins/resource.db.php
5. Ensure the server can write to mainfile.php
6. For security considerations, you are encouraged to move directories xoops_lib (for XOOPS libraries) and xoops_data (for XOOPS data) out of document root, or even change the folder names.
7. Make the directory of xoops_data/ writable; Create and make the directories of xoops_data/caches/, xoops_data/caches/xoops_cache/, xoops_data/caches/smarty_cache/ and xoops_data/caches/smarty_compile/ writable.
8. Access /upgrade/ with a browser, and follow the instructions
9. Write-protect mainfile.php again
10. Delete the upgrade folder from your server
11. Update the "system" module from the modules administration interface, other modules are recommended to update as well


Upgrading a non UTF-8 site:
UTF-8 encoding has been introduced into XOOPS 2.3 as default charset. However, there might be some problems with converting existent websites from non UTF-8 charset to UTF-8.
Before there is a good enough solution for this conversion, following settings are recommended when you upgrade an existent website if you are not an experienced user:
- Select "Do not change" option in "Database character set and collation" step during upgrade process
- Modify /languages/yourlanguage/global.php to use existent _CHARSET value if it has been changed to UTF-8 in your new global.php file as
define('_CHARSET''UTF-8');



Upgrading XoopsEditor package:
In the XOOPS 2.3.2a package, there are five editors included: dhtmltextarea and textarea for plain text, fckeditor, tinymce and koivi for WYSIWYG HTML.
Since there are some directory structure changes in both fckeditor and tinymce editors, you are recommended to remove existent editors before uploading the new additors.
And if you are using fckeditor for modules, please modify module specific configs following the files in /fckeditor/modules/, especially if you use "article" module.


Debug information display level
-----------------------------------

Since XOOPS 2.3.1 debug information display level is enabled as a temporary solution for 2.3* to show debug information to different level of users: to all users, to members or to admins only.
The configuration can be set in /xoops_data/configs/xoopsconfig.php
A new debug information renderer is redesigned in XOOPS 3.0



Files integrity check
-----------------------------------

The full XOOPS package is released with a script able to check if all the system files have been correctly uploaded to the server. To use it, follow these instructions:

1. Upload the checksum.php and checksum.md5 files located in the XOOPS package root to your XOOPS server folder (putting them next to mainfile.php).
2. Execute checksum.php with your browser
3. If necessary, re-upload the missing or corrupted system files
4. Remove checksum.php and checksum.md5 from your server


Modules
-----------------------------------

This release contains only the "system-related modules". You are invited to browse the XOOPS modules repository to if you need additional functionality. Note: as a new repository is being built, the current repository is not up-to-date, PLEASE VISIT INDIVIDUAL DEVELOPERS' WEBSITES TO MAKE SURE YOU ARE USING LATEST VERSION OF MODULES.


How to contribute
-----------------------------------
Bug report: http://sourceforge.net/tracker/?group_id=41586&atid=430840
Patch and enhancement: http://sourceforge.net/tracker/?group_id=41586&atid=430842
Feature design: http://sourceforge.net/tracker/?group_id=41586&atid=430843
Release announcement: https://lists.sourceforge.net/lists/listinfo/xoops-announcement


XOOPS Development Team
November 26th, 2008


Tags: security  
Printer Friendly Page Send this Story to a Friend Create a PDF from the article


Bookmark this article at these sites

                   

The comments are owned by the poster. We aren't responsible for their content.

Change Log:

============================
2008/11/26: Version 2.3.2
============================
- Fixed XSS vulnerability in xoopscode and potential text (phppp/DSG)
- Fixed security vulnerability in autologin (phppp/Dylian/alfred)
- Improved protector module for potential local file inclusion (DSGGIJOE/phppp/)
- Modified /model/sync.php for backward compatibility (phppp/boy0917)
Posted: 2008/11/26 2:03 • Updated: 2008/11/26 2:50
Upgrade 2.3.1 to 2.3.2 no way to login...

Followed instructions and applied various times after having backed up but no way I can login on 1st upgrade page...

Any idea???

In any case BACKUP!!! BACKUP!!! BACKUP!!!
Posted: 2008/11/26 6:36 • Updated: 2008/11/26 6:57
Dnprossi, if you want, please email me via PM you login info and I'll look into it.

Make sure, you don't post anything here.

Everybody: please follow with any installation issues in the 2.3.x Forum
Posted: 2008/11/26 6:53 • Updated: 2008/11/26 6:53
Although announced for the 2.3x-series, is the latest 2.0x also vulnerable? I saw some files also being in the old series. Along with some smarty-files. I did not make a comparison yet. Another question: is 2.0x still actively maintained or do we all have to jump the 2.3x-train?

Would give me some trouble, because I "advanced" some sites for my personal needs.
Posted: 2008/11/26 7:22 • Updated: 2008/11/26 7:22
changes in language files?
Posted: 2008/11/26 7:24 • Updated: 2008/11/26 7:24
Quote:
changes in language files?

No changes
Posted: 2008/11/26 7:31 • Updated: 2008/11/26 7:31
Quote:
Followed instructions and applied various times after having backed up but no way I can login on 1st upgrade page...

Any idea???


Same here.

Using two files from Xoops 2.3.1
include\checklogin.php
include\common.php

I was able to login.
Posted: 2008/11/26 7:45 • Updated: 2008/11/26 7:45
There are some doubts, that 2.3.2 will fix the problem. Look here

Maybe this code works for you? There are slight differences to the 2.3.2-code.
Posted: 2008/11/26 7:47 • Updated: 2008/11/26 7:48
The code works, thanks Frank.
Posted: 2008/11/26 7:58 • Updated: 2008/11/26 7:58
Anyone else having trouble finding the 2.3.2 packages?
Posted: 2008/11/26 11:12 • Updated: 2008/11/26 11:12
Yes, i can't find them to... Are they deleted from the repositry, or wath's happening.

Quote:
All XOOPS 2.3.x users are highly recommended to upgrade to this version ASAP.
, how can we do this if we can't download it???

Greets Dylian.
Posted: 2008/11/26 11:21 • Updated: 2008/11/26 11:23
Yes, the link from sourceforge gives me an empty file table.

You can download the two corrected files from the German forum. This will make your system safe.

@Dylian: Good work!
Posted: 2008/11/26 11:27 • Updated: 2008/11/26 11:30
Those two files replace the ones in 2.3.2 package, do they? Or will they work on a 2.3.1 install, without the 2.3.2 update?

Thank you Dylian, btw!
Posted: 2008/11/26 11:34 • Updated: 2008/11/26 11:34
They are intended to use as replacements for the files from 2.3.1.
Posted: 2008/11/26 11:37 • Updated: 2008/11/26 11:37
Excellent! All sites updated. Thank you all.
Posted: 2008/11/26 11:48 • Updated: 2008/11/26 11:48
so actually the fixed files in the 2.3.2 packages are 'wrong' and we have to wait until sourceforge official packages will be updated..
am I correct?

thanx
Ian
Posted: 2008/11/26 12:10 • Updated: 2008/11/26 12:10
I don't know what is happening with 2.3.2 and on Sourceforge, but if you have a 2.3.x site, I would recommend you to install the German forum files (see my post here above) as a stopgap measure.
Posted: 2008/11/26 12:27 • Updated: 2008/11/26 12:27
Finally the XOOPS 2.3.2 is download able again .
Just downloaded it.

Greets Dylian
Posted: 2008/11/26 13:36 • Updated: 2008/11/26 13:36
Hi:

Our web is still Xoops 2.3.0, as we found some problems with Xoops 2.3.1.

Will the "Upgrading from XOOPS 2.3.1 (easy way)" work with a 2.3.0 installation? I guess it won't...

Regards: Colossus
Posted: 2008/11/26 14:52 • Updated: 2008/11/26 14:53
The upgrade-package from 2.3.1->2.3.2 is more or less identical to the upgrade-package from 2.3.0->2.3.1. Copying the upgrade-folder is useless, because is no action to be taken for upgrading, although this should be necessary as stated in the installation instructions. IMHO there MUST be no upgrading from 2.3.1 to 2.3.2
Posted: 2008/11/26 15:10 • Updated: 2008/11/26 15:13
At first when I started upgrade I got message No Language File. As far as I know the Dutch language files reside in their Dutch name directory = nederlands. Now I see in the upgrade files its called Dutch.....
Changing it back to nederlands the upgrade worked again (but like Frankblack said it doesnt seem to be needed with 2.3.1 to 2.3.2)
But main thing is what to name the dutch/nederlands language directory now??
Posted: 2008/11/26 17:26 • Updated: 2008/11/26 17:26
I'll look into the issue "dutch" vs. "nederlands".

In our SVN language repository we have all as "nederlands"
Posted: 2008/11/26 18:14 • Updated: 2008/11/26 18:14
Quote:
Another question: is 2.0x still actively maintained or do we all have to jump the 2.3x-train?

It is recommended that all users update to XOOPS 2.3.2
Posted: 2008/11/26 18:20 • Updated: 2008/11/26 18:20
Quote:
Quote:

Another question: is 2.0x still actively maintained or do we all have to jump the 2.3x-train?


It is recommended that all users update to XOOPS 2.3.2


So I take this as an no for the first part of my question!
Posted: 2008/11/26 18:51 • Updated: 2008/11/26 18:51
Then better to change it in the upgrade file language.php.

By the way I have made an further translation of Dylians Dutch language files for 2.3.1 (it created some blanc pages since also some lines were missing (he knows of my translation).

Where can I upload these?
Posted: 2008/11/26 18:59 • Updated: 2008/11/26 18:59
Quote:
So I take this as an no for the first part of my question!

Correct, 2.0.18.2 is not actively maintained anymore, since we have an update to 2.3.x.

As you know. 2.3.x was the idea of merging existing separate branches, so we can focus on maintaining only one version.

I'll ask phppp if he has time to provide a security patch for 2.0.18.2
Posted: 2008/11/26 19:00 • Updated: 2008/11/26 19:00
@ greywolf22
Quote:
By the way I have made an further translation of Dylians Dutch language files for 2.3.1 (it created some blanc pages since also some lines were missing (he knows of my translation).

Fantastic!!! Thank you for doing it!!

Quote:
Where can I upload these?

You can submit it to Dylian or to me and we can upload them. Or if you want to maintain the files on SVN (and work on more module translations to Dutch), we can give you access to SVN.
Posted: 2008/11/26 19:06 • Updated: 2008/11/26 19:06
Well, I would like to access to SVN then, Dylian also suggested this (is there a guide for how to work on them).
And for your information I am joining the Dutch team to look further into translations.

Thanks
Cath
Posted: 2008/11/26 19:14 • Updated: 2008/11/26 19:14
Quote:
Well, I would like to access to SVN then, Dylian also suggested this (is there a guide for how to work on them).

You'll need to register on www.SourceForge.net

Once you do it, please send me a PM, and I'll add you to the team, and email you some links to TortoiseSVN that we recommend to use.

Quote:
And for your information I am joining the Dutch team to look further into translations.

Fantastic!!! There are a lot modules to be translated, so there more translators we have, the better! Thank you for joining!
Posted: 2008/11/26 19:54 • Updated: 2008/11/26 19:54
Quote:
I'll ask phppp if he has time to provide a security patch for 2.0.18.2


Would be great! IMO you could not drop support for 2.0.x so early. 17.000 downloads do not mean 17.000 upgrades or installations. Many of them are downloads from curious ones like me or for testing purposes. Maybe you should make a poll, where people can enter how many sites with which versions they have running? So you'll also get some interesting figures and facts for your promotional materials.
Posted: 2008/11/27 2:31 • Updated: 2008/11/27 2:33
Don't get me wrong - I agree with you, and we'll try to make the security patch for 2.0.18.2. It's only issue of time - to find it to make the patch. Phppp has been very busy lately.

It's been always policy of XOOPS that we're trying to provide security patches for the current release, and one back.
Posted: 2008/11/27 2:45 • Updated: 2008/11/27 2:45
Sorry, I cannot refrain from commenting this. Everyone who knows me calls me nitpicking!

Quote:
Correct, 2.0.18.2 is not actively maintained anymore, since we have an update to 2.3.x.


VERSUS

Quote:
It's been always policy of XOOPS that we're trying to provide security patches for the current release, and one back.


=

2.0x is hopefully still maintained. LOL
Posted: 2008/11/27 3:06 • Updated: 2008/11/27 3:06
OK, Mr. Nitpicking!

2.0.x is not maintained in the sense of adding any new features.
But we'll try to provide security patches for sometime in the future.

However, we're still recommend to upgrade to 2.3.2, as it will make lives easier for all of us, incl. the users
Posted: 2008/11/27 3:12 • Updated: 2008/11/27 3:12
What's the difference between protector 3.21 from Gejoi ( here ) and protector in xoops 2.3.2 ?
Posted: 2008/11/27 4:24 • Updated: 2008/11/27 4:24
guys I'm sorry but I can't understand at all this discussion...
my question is simple: it's the 2.3.2 pack usable and bug free? or the bugs were only in the upgrade pack from 2.3.1? and in order to resolve them should we use the german files patches?

I need to know this when announcing the last changes on our local support site.

thanx
Ian
Posted: 2008/11/27 4:37 • Updated: 2008/11/27 4:42
Quote:
What's the difference between protector 3.21 from Gejoi ( here ) and protector in xoops 2.3.2 ?

If I'm not mistaken, our protector changes are fixing a security bug reported by DSR. DJ has submitted the solution to GIJoe, so I assume he will take a look into it, and then either include it as is, or will develop other solution addressing the bug.
Posted: 2008/11/27 4:52 • Updated: 2008/11/27 4:52
Quote:
it's the 2.3.2 pack usable and bug free? or the bugs were only in the upgrade pack from 2.3.1? and in order to resolve them should we use the german files patches?

2.3.2a addresses several security issues, incl. the Autologin issue provided by the German patches.

Therefore it's recommended that you upgrade to 2.3.2a and forget the German patches, as they are included in 2.3.2a
Posted: 2008/11/27 4:54 • Updated: 2008/11/27 4:58
you can update to 2.3.2a
Here is fixing this bug.
The files from the german Forum is included.
Posted: 2008/11/27 4:56 • Updated: 2008/11/27 4:56
ok guys thanx, after posting I saw the updated version...

I used the pack "2.3.1 to 2.3.2a" on a clean 2.3.1 installation with only some custom blocks and protector installed.
After upgrade logging is ok but there are some problems:

1) the image auto resize don't work anymore.. I see the image in the orginal size and if I click on it I receive:
Forbidden

You dont have permission to access 
/x231_ITA/(script removed)CaricaFoto("http://xxxxx/xxxxx/uploads/img492e78fe31bc1.jpg"); on this server.

I think this has something to do with module.textsanitizer.php file.. around line 346 in the code addedo for preventing xss

2) I've run file checksum.php (the one in the 2.3.2a pack because in the upgrade this file has not been included.. why?) and it returns me:

./mainfile.dist.php content invalid
./class/xoopsmailer.php content invalid

the mainfile.dist.php is the one for protector renamed form the extra folder in 2.3.2a, while xoopsmailer.php has been changed by the upgrade pack..

it'all for the moment (I hope)
any workaround?

speaking honestly I think it's not good to set as mandatory for all user an upgrade (which should be simply a fix..) giving so many troubles..
some more debug should be taken..

Ian
Posted: 2008/11/27 6:17 • Updated: 2008/11/27 6:20
Quote:
2.0.x is not maintained in the sense of adding any new features.
But we'll try to provide security patches for sometime in the future.

I hope there will be a patch for 2.2.6 too. Because I can't update my sites before some 2.2.x specific features as the display name make their way to 2.3.x, hopefuly in 2.3.3.

Altough I think the older versions are relatively safe and the major security hole with the autologin has only affected 2.3.x sites (or was it already present with 2.0.18 too?).
Quote:
speaking honestly I think it's not good to set as mandatory for all user an upgrade (which should be simply a fix..) giving so many troubles..
some more debug should be taken..

I second that!

It seems that there are a lot of old files in the upgrade package and it looks more a downgrade package, where a lot of things are rolled back!

Up to now, with all the problems since the introduction of 2.3.x, I'm glad having postponed the risk of upgrading.
Posted: 2008/11/27 8:59 • Updated: 2008/11/27 8:59
any workaround for the bug at point one of my last post? actually image resize is almost unusable...

Ian
Posted: 2008/11/28 4:39 • Updated: 2008/11/28 4:39
Just made a upgrade from 2.3.1 without problems, also myalbum works fine and my thumbnail als working correctly, so i dont think the reason for your thumbnail problem is 2.3.2a
Posted: 2008/11/28 6:24 • Updated: 2008/11/28 6:24
I've reinstalled 2.3.1 two times and made the upgrade to 2.3.2a..always same error.
did you try creating a custom blook and inserting an image in this block? let me know if you have my same problem, which is not related to gd thumbnail generation..

Ian
Posted: 2008/11/28 8:58 • Updated: 2008/11/28 8:58
For this, you better open a thread in the forum, because this is no longer a comment on the security release article. You will have more exposure and more chance for resolution there too.
Posted: 2008/11/28 9:17 • Updated: 2008/11/28 9:17
ok ghia,
anyway looks like the bug has been solved..
we'll see in the next days

IAn
Posted: 2008/11/28 9:23 • Updated: 2008/11/28 9:23
Ghia,

Quote:
I hope there will be a patch for 2.2.6 too.

Well, it came out that there is no need for a security patch for 2.0.x or 2.2.x, as the security issues in this Security Release were related only to 2.3.x.

The only impact for 2.0.x or 2.2.x users is if you use Protector (and you all should use it!).

We just released a quick fix for it - please read here..
Posted: 2008/11/28 9:24 • Updated: 2008/11/28 9:24
@ Ianez:
Quote:
1) the image auto resize don't work anymore.. I see the image in the orginal size and if I click on it I receive:

we'll have something for your tomorrow. We're in process of testing an improved version addressing the XSS vulnerability, which we plan to release in the next 24 hours. It will also fix the image resizing issue.
Posted: 2008/11/28 9:38 • Updated: 2008/11/28 9:38
Persian language in xoops 2.3.2 have some change . you can find it from here
http://www.irxoops.org/modules/wfdown ... le.php?cid=14&lid=244
Posted: 2008/11/29 4:33 • Updated: 2008/11/29 4:33