vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Patched Flash Uploader to Fix Known Exploits (https://vborg.vbsupport.ru/showthread.php?t=307008)

alexm 01-13-2014 11:00 PM

Patched Flash Uploader to Fix Known Exploits
 
1 Attachment(s)
UPDATE Dec 2014: 4.2.2 PL2, 4.2.2 PL3 and 4.2.3 core download packages from vBulletin now include this patched version of uploader.swf as standard.

This is a patched version of YUI 2.9.0 uploader.swf as used by vBulletin 4.x for managing multiple file uploads.

An exploit was found in the flash uploader (uploader.swf) file supplied with vBulletin 4.x. This file is part of the Yahoo YUI 2 Library which is end of life and Yahoo have stated that they will not be fixing it. Yahoo recommends that the file is removed as the flash uploader has been deprecated.

vBulletin's recommended fix is to replace the file with an empty file of the same name. If you do this, however, and rely solely on the Ajax uploader you will not be able to select multiple files without further modifications.

This modification is a recompiled version of uploader.swf with the above exploit fixed. An additional potential exploit has also been fixed by disabling a parameter not used by vBulletin.

The YUI source used is provided freely by Yahoo to whom I give full credit.


1) Installation

a) Extract uploader.swf from the .zip file and replace your existing file here:

<forum_root>/clientscript/yui/uploader/assets/uploader.swf

b) Make sure the flash uploader is enabled in the Admin Control Panel

Options -> Message Attachment Options -> Asset Manager - Enable -> Select "Yes, Flash Upload by Default"

c) Make sure you are NOT using remote YUI

vBulletin Options -> Server Settings and Optimization Options

Use Remote YUI set to None

d) You may also need to clear your browser cache and/or vBulletin cache (Maintenance ->Clear system cache) if you have performed the above steps correctly but clicking the Upload button still does nothing.



2) Changes

11th January 2014

The parameter 'allowedDomain' has been sanitised with a REGEX to prevent malicious javascript being passed in a query string.


11th January 2014 v2

Many thanks to FranzBanz (http://www.vbulletin.com/forum/member/449383-franzbanz) for his suggestions
  • finding another exploit (using another parameter). Exploit fixed by setting the parameter (not used by vBulletin) to null.
  • '-' Character added to allowed characters in allowedDomain


Non-Flash Alternative
Please note that if you would rather avoid using flash altogether an alternative Mod has been released by BirdOPrey5, although there are some compromises/limitations with IE10+.

Asset Manager / Image Upload Fix to upload multiple files like the Flash uploader


DISCLAIMER
I am not a flash developer, I am just another vBulletin customer trying to keep his members happy!
This file is provided free of charge for the benefit of the vBulletin community. You use it at your own risk!


Copyright ? 2013 Yahoo! Inc. All rights reserved.
Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Yahoo! Inc. nor the names of YUI's contributors may be used to endorse or promote products derived from this software without specific prior written permission of Yahoo! Inc.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ckgb 01-14-2014 06:21 PM

Thank you very much!!!

Diesel, 01-14-2014 08:07 PM

Thanks for the Patch.

tester559 01-14-2014 08:11 PM

Thank you :) I appreciate your time in fixing this issue

Stuart

Mark.B 01-14-2014 08:15 PM

Thanks very much for your work on this, it is much appreciated by many of us who miss the Flash functionality.

I'll get this installed on my own site in the next few days.

BirdOPrey5 01-14-2014 11:39 PM

Thank You. :)

bzcomputers 01-14-2014 11:58 PM

I'm always worried about when my vb4 will inevitably be forced to retire and in turn force me to move on to something else due to issues like this that arise.

Luckily there are still some great coders around supporting it. Unfortunately fewer and fewer these days though :(

Thanks for the fix.

Hostboard 01-15-2014 03:41 AM

Thank you 100x over.

puertoblack2003 01-15-2014 03:52 AM

thank you for you time and the patch.

hugh_ 01-15-2014 07:50 AM

Great work, thank you!

ezak 01-15-2014 09:39 AM

thank you installed

Thangvip9x 01-15-2014 02:08 PM

Thank you

tommyxv 01-15-2014 03:27 PM

Thank very much!

Trevor Matthews 01-15-2014 07:10 PM

Hi
Excellent work and has saved many of us from lots of trouble on our forums.
Many thanks.

miszko 01-15-2014 07:52 PM

Thanks man! I also nominated this mod to MOTM.

keyla31 01-15-2014 09:05 PM

ive done this but for some reason when I click select files a new box to browse computer files does not pop up? And ideas?

alexm 01-15-2014 09:44 PM

Quote:

Originally Posted by keyla31 (Post 2474439)
ive done this but for some reason when I click select files a new box to browse computer files does not pop up? And ideas?

Try clearing your browser cache

Paul M 01-15-2014 10:49 PM

Irrelevant posts and comments removed.

This is a modification release thread, not another "lets attack IB" thread.

MrD 01-16-2014 04:47 AM

Thx

keyla31 01-17-2014 03:29 PM

Quote:

Originally Posted by keyla31 (Post 2474439)
ive done this but for some reason when I click select files a new box to browse computer files does not pop up? And ideas?

cleared browser like recommended and this worked, now working perfectly in 4.2.2 Thank you so so much

Thangvip9x 01-17-2014 09:30 PM

Working on vBulletin 4.2.2, thank you very much

Rebecca217 01-18-2014 01:42 PM

Thank you so much for taking the time to fix this, and to make it available to the rest of us! :)

migratoria 01-19-2014 05:23 PM

Tanks for the fix!

SomeSailor 01-19-2014 06:21 PM

This should be included as a patch to all VB installs. Thank you very much!

tpearl5 01-20-2014 07:54 PM

This should definitely be included as a patch! Thanks!

migratoria 01-21-2014 03:51 PM

In vb 4.2.2 works...

rootsxrocks 01-22-2014 10:29 PM

Thank you

Phaedrus 01-23-2014 01:44 AM

Cool. Let's see if anybody at my site notices.

BarracodE 01-23-2014 03:45 PM

Thank you so much. This issue was difficult to track down. Multiple images is very important to our users. Clearing the browser cache was the final missing piece. Thank you!

Jaydee 2 01-24-2014 09:18 AM

Many thanks for this fix. :) It was an good idea!

I'll install it approximately in just one forum (just for testing it) and maybe later on in all the remaining ones.

bombardier 02-04-2014 08:27 AM

Well I cant say I fully understood what the issue was only that there was one.
I have installed this fix and have experienced no noticeable change or issues.

whatever the problem was it is fixed and I thank you very very much for your efforts.

GONUMBER6 02-10-2014 05:03 PM

Thanks!!!!!

DemOnstar 02-10-2014 05:08 PM

MOD of the month this month surely....

Well done in advance alexm.....

Voted!

dougdirac 02-10-2014 11:08 PM

Kinda sad that basic maintenance ends up being so praiseworthy. We've long giving up on features or improvements.

Boulard83 02-17-2014 05:38 PM

MUCH MUCH appreciated, big +1

Silver_2000_)! 02-19-2014 12:22 AM

Uploaded the file and the button still doesnt work - im sure I missed some step ...

naveeid 02-19-2014 01:32 AM

This is great , i was looking for this solution , the response from Vbulletin official team on this issue was hopeless ,

but alexm you have taken the right step , great work. thanks.

XiTCLUB 02-24-2014 07:53 PM

Thanks for this big help !!

tom w 03-01-2014 12:23 PM

Being a paranoid security type, any chance of getting the source code for this replacement file? Since it doesn't come from either Yahoo or VBulletin (for whatever reason) I'm reluctant to trust files from a relatively unknown sources (though it's great people like to help) which could introduce other vulnerabilities that we'd never know about.

hoangserip 03-02-2014 08:48 AM

Thanks for the Patch.


All times are GMT. The time now is 06:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01350 seconds
  • Memory Usage 1,811KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete