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 Uploader Security Patch Released

Posted by phppp on 2007/10/1 2:46:56 (6190 reads) | Posted on XOOPS
There is potential vulnerability identified in uploader class in case upload configuration is not set properly by modules.
The patch is applicable to all XOOPS versions.

Download from SourceForge XOOPS.

Instructions:
Upload the two files /class/uploader.php and /class/mimetypes.inc.php to your /class/ folder and overwrite existent files.


You are highly encouraged to implement the patch to your existent XOOPS system.


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.

What are the versions of Xoops affected by this ?
Posted: 2007/10/1 3:27 • Updated: 2007/10/1 3:27
Quote:
hervet wrote:

What are the versions of Xoops affected by this ?


Quote:
The patch is applicable to all XOOPS versions.


Probably all Xoops versions released so far are affected.
Posted: 2007/10/1 4:39 • Updated: 2007/10/1 4:39
Quote:
Probably all Xoops versions released so far are affected.


I suspect that Hervé was referring to the newly announced 2.0.17.1RC2........... has this fix made it into it?

Will it be included in the "2.0.17.1 Final" and all subsequent releases?

Just so we know if folks ask in the future, which they are sure to do
Posted: 2007/10/1 11:44 • Updated: 2007/10/1 11:44
The files /class/uploader.php and /class/mimetypes.inc.php are the same in the uploader patch as they are in Xoops 2.0.17 RC2.
So the patch made it into 2.0.17.1 RC2.

I think we can assume that this security patch will be included in the 2.0.17.1 final version too.
Posted: 2007/10/1 12:23 • Updated: 2007/10/1 12:23
McDonald is correct.
Posted: 2007/10/1 14:20 • Updated: 2007/10/1 14:20
Quote:
McDonald is correct.


<pedant mode>

So it's not applicable to all versions

</pedant mode>

The above comment is made with humorius intent. The comment below is sincere.

Thanks for the update - much appreciated
Posted: 2007/10/1 14:39 • Updated: 2007/10/1 14:50
My question was asked to know if it was for the 2.0.17 version or ALL the versions but I had the answer.
Posted: 2007/10/1 16:27 • Updated: 2007/10/1 16:27
I wonder if the patched uploader IS secure? If I get this right mimetype checking is relying on what the browser delivers on mimetype information.

Maybe there should be checks made afterwards with THIS or even better THIS.

But as a drawback, certain things have to be properly set resp. installed. Maybe we can see this in the next version?
Posted: 2007/10/2 3:53 • Updated: 2007/10/2 3:53
Frank,

That's just a comment from myself, I've been playing with mime_content_type, it relies on a file that is not always installed and not always up to date and I did not get much more success with the finfo functions.

But you are true, the information coming from the browser is not trusty.

** EDIT by myself **
If you use this patch with a version of Xoops older than the 2.0.17 you will have some problems because this class uses some defines that don't exist in older versions (for example in the 2.0.16)

Other point, when the file size is not set by the module, the class returns true (in checkMaxFileSize()) as if everything was ok. I think it will be disturbing for users to have a module that is telling them that the upload was ok when it's not true no ?



Hervé.
Posted: 2007/10/2 5:25 • Updated: 2007/10/2 6:09
Perhaps we should focus 2.0.18 on all possible vuln
Posted: 2007/10/2 5:53 • Updated: 2007/10/2 5:53
Quote:

Perhaps we should focus 2.0.18 on all possible vuln

come on, guys, is the "patch of the patch" process going to be a new dev rule? do the core dev test their work?
please don't make again old mistakes, and learn from past. it's really not time to play again old bad errors, this will confuse community.

Moreover, i hope you will add in the 2.0.17.1 changelog some informations about the hervet's comment ("Other point, when the file size is not set by the module, the class returns true (in checkMaxFileSize()) as if everything was ok. I think it will be disturbing for users to have a module that is telling them that the upload was ok when it's not true no ?")
Posted: 2007/10/2 12:38 • Updated: 2007/10/2 12:57
good evening.

Is it necessary for Xoops 2.0.16?

Do you recommend to take a backup first?


Posted: 2007/10/2 14:24 • Updated: 2007/10/2 14:24
Quote:
If you use this patch with a version of Xoops older than the 2.0.17 you will have some problems because this class uses some defines that don't exist in older versions (for example in the 2.0.16)


I'm using the patch with 2.0.7.3 and up to now it seems not to make any problems.
What defines do you talk about? Language defines? (I also did an update of them).
Posted: 2007/10/3 5:11 • Updated: 2007/10/3 5:11
I know the announcement says all versions, but in response to Hervet's comment, can we have a definitive confirmation from core team - is this patch suitable to apply to all versions of Xoops (2.0.7. 10, 13, 14 etc..)?
Posted: 2007/10/4 4:28 • Updated: 2007/10/4 4:29
Well, as I said it seems to work well with 2.0.7.3. I couldn't make out any problems so far.
Posted: 2007/10/4 5:55 • Updated: 2007/10/4 5:55
Quote:

Well, as I said it seems to work well with 2.0.7.3. I couldn't make out any problems so far.

If you upload a file and something is going wrong, you will see some defines like (just an example) _ER_UP_MIMETYPELOAD instead of the text (because those defines only exist in 2.0.17 in a new file /xoops/language/mylang/uploader.php)
Posted: 2007/10/4 10:13 • Updated: 2007/10/4 10:13
Thx Hervet. So, the file /xoops/language/mylang/uploader.php and some instruction where to put it should really be added to the patch downloads, yes?
Posted: 2007/10/4 11:55 • Updated: 2007/10/4 11:55
There's only the core team which can give you an answer.
Posted: 2007/10/4 12:17 • Updated: 2007/10/4 12:17
Quote:
If you upload a file and something is going wrong, you will see some defines like (just an example) _ER_UP_MIMETYPELOAD instead of the text (because those defines only exist in 2.0.17 in a new file /xoops/language/mylang/uploader.php)


I considered that with the update.
Posted: 2007/10/5 10:17 • Updated: 2007/10/5 10:17
It appears that this security patch is incomplete to qualify for use with all versions of Xoops. Not a big deal to add the missing file to the download, surely?
Posted: 2007/10/6 4:20 • Updated: 2007/10/6 4:20
This might seem like a silly question but...

I have php safe mode on, and none of my modules are set to allow uploads at all.

Do I need to use this patch?

Or am I safe waiting until xoops 2.0.17.1 comes out (I am using 2.0.16 now)?

Thank you.
Posted: 2007/10/6 6:11 • Updated: 2007/10/6 6:11