Plugin Directory

Changeset 1265689


Ignore:
Timestamp:
10/14/2015 10:18:16 AM (10 years ago)
Author:
crosstec
Message:

removed Uploadify references due to possible XSS vulnerabilities.

Location:
breezing-forms/trunk
Files:
4 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • breezing-forms/trunk/breezingforms.php

    r1227085 r1265689  
    44Plugin URI: http://crosstec.de/en/wordpress-forms-download.html
    55Description: A professional forms plugin for wordpress.
    6 Version: 1.2.7.33
     6Version: 1.2.7.34
    77Author: Crosstec GmbH & Co. KG
    88Author URI: http://crosstec.de
  • breezing-forms/trunk/platform/administrator/components/com_breezingforms/admin/quickmode.html.php

    r762616 r1265689  
    35523552                                <div class="bfElementTypeClass" id="bfElementTypeFileAdvanced" style="display:none">
    35533553                                    <label class="bfPropertyLabel" for="bfElementFileAdvancedFlashUploader"><?php echo BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER'); ?></label>
    3554                                     <input type="checkbox" value="" id="bfElementFileAdvancedFlashUploader"/>
     3554                                    <input type="checkbox" value="" id="bfElementFileAdvancedFlashUploader" onclick="alert('Flash Uploader is only available in the full version of BreezingForms');"/>
    35553555                                    <br/>
    35563556                                    <br/>
  • breezing-forms/trunk/platform/administrator/components/com_breezingforms/libraries/crosstec/classes/BFQuickMode.php

    r762616 r1265689  
    245245                    for(qID in bfFlashUploadAll){
    246246                        try{
    247                             JQuery(bfFlashUploadAll[qID]).uploadifyCancel(qID);
     247                            // removed
    248248                        }catch(e){}
    249249                    }
     
    13581358                    case 'bfFile':
    13591359                        echo '<input class="ff_elem" '.$tabIndex.$onclick.$onblur.$onchange.$onfocus.$onselect.$readonly.'type="file" name="ff_nm_'.$mdata['bfName'].'[]" id="ff_elem'.$mdata['dbId'].'"/>'."\n";
    1360                         if(isset( $mdata['flashUploader'] ) && $mdata['flashUploader']){
    1361                                                         echo '<input type="hidden" id="flashUpload'.$mdata['bfName'].'" name="flashUpload'.$mdata['bfName'].'" value="bfFlashFileQueue'.$mdata['dbId'].'"/>'."\n";
    1362                             $this->hasFlashUpload = true;
    1363                             //allowedFileExtensions
    1364                             $allowedExts = explode(',',$mdata['allowedFileExtensions']);
    1365                             $allowedExtsCnt = count($allowedExts);
    1366                             for($i = 0; $i < $allowedExtsCnt;$i++){
    1367                                 $allowedExts[$i] = '*.'.$allowedExts[$i];
    1368                             }
    1369                             $exts = '';
    1370                             if($allowedExtsCnt != 0){
    1371                                 $exts = ',fileExt: "'.implode(';',$allowedExts).'", fileDesc: "'.addslashes(str_replace(array("'",'"',"\n","\r"),'',BFText::_('COM_BREEZINGFORMS_CHOOSE_FILE'))).'"';
    1372                             }
    1373                                                         echo "<span class=\"bfFlashFileQueueClass\" id=\"bfFlashFileQueue".$mdata['dbId']."\"></span>";
    1374                             $this->flashUploaderQueue[] = "
    1375                             <script type=\"text/javascript\">
    1376                                                         <!--
    1377                             bfFlashUploaders.push('ff_elem".$mdata['dbId']."');
    1378                             var bfFlashFileQueue".$mdata['dbId']." = {};
    1379                            
    1380                                                         var bfUploadified_ff_elem".$mdata['dbId']." = {
    1381                                     'scriptAccess'   : 'always',
    1382                                     'buttonImg'      : '".$this->uploadImagePath."',
    1383                                     'width'          : ".(isset($mdata['flashUploaderWidth']) && is_numeric($mdata['flashUploaderWidth']) && $mdata['flashUploaderWidth'] > 0 ? intval($mdata['flashUploaderWidth']) : '64').",
    1384                                     'height'         : ".(isset($mdata['flashUploaderHeight']) && is_numeric($mdata['flashUploaderHeight']) && $mdata['flashUploaderHeight'] > 0 ? intval($mdata['flashUploaderHeight']) : '64').",
    1385                                     ". ( isset($mdata['flashUploaderTransparent']) && $mdata['flashUploaderTransparent'] ? "'wmode'          : 'transparent'," : '' ) ."
    1386                                     'uploader'       : '".BF_PLUGINS_URL . "/".BF_FOLDER."/platform/components/com_breezingforms/libraries/jquery/uploadify.swf',
    1387                                     'script'         : '".JURI::root()."wp-admin/admin-ajax.php?action=breezingformsajax',
    1388                                     'cancelImg'      : '".$this->cancelImagePath."',
    1389                                     'queueID'        : 'bfFileQueue',
    1390                                     'auto'           : false,
    1391                                     'multi'          : ".( isset($mdata['flashUploaderMulti']) && $mdata['flashUploaderMulti'] ? 'true' : 'false' ).",
    1392                                     'buttonText'     : ' ',
    1393                                     'onSelect'       : function(event, queueID, fileObj){
    1394                                                                                                                         bfFlashUploadersLength++;
    1395                                                             var tooLarge = '';
    1396                                                             var thebytes = ".(isset($mdata['flashUploaderBytes']) && is_numeric($mdata['flashUploaderBytes']) && $mdata['flashUploaderBytes'] > 0 ? intval($mdata['flashUploaderBytes']) : '0').";
    1397                                                             if(thebytes > 0 && fileObj.size > thebytes){
    1398                                                                 bfFlashUploadTooLarge[queueID] = '#ff_elem".$mdata['dbId']."';
    1399                                                                 tooLarge = ' (".addslashes(BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER_TOO_LARGE')).")';
    1400                                                             }
    1401                                                             bfFlashUploadAll[queueID] = '#ff_elem".$mdata['dbId']."';
    1402                                                             bfFlashFileQueue".$mdata['dbId']."[queueID] = {fname: fileObj.name, tooLarge: tooLarge};
    1403                                                             JQuery('#bfFlashFileQueue".$mdata['dbId']."').html( JQuery('#bfFlashFileQueue".$mdata['dbId']."').html() + '<br/>' + '<a href=\"javascript:JQuery(\'#ff_elem".$mdata['dbId']."\').uploadifyCancel(\''+queueID+'\')\"><img src=\"".$this->cancelImagePath."\" border=\"0\"/></a>&nbsp;' + fileObj.name + tooLarge);
    1404                                                         },
    1405                                     'onCancel'       : function(event, queueID, fileObj){
    1406                                                                                                                         if(bfFlashUploadersLength > 0) bfFlashUploadersLength--;
    1407                                                             delete bfFlashFileQueue".$mdata['dbId']."[queueID];
    1408                                                             delete bfFlashUploadTooLarge[queueID];
    1409                                                             delete bfFlashUploadAll[queueID];
    1410                                                             JQuery('#bfFlashFileQueue".$mdata['dbId']."').html('');
    1411                                                             for(qID in bfFlashFileQueue".$mdata['dbId']."){
    1412                                                                 JQuery('#bfFlashFileQueue".$mdata['dbId']."').html( JQuery('#bfFlashFileQueue".$mdata['dbId']."').html() + '<br/>' + '<a href=\"javascript:JQuery(\'#ff_elem".$mdata['dbId']."\').uploadifyCancel(\''+qID+'\')\"><img src=\"".$this->cancelImagePath."\" border=\"0\"/></a>&nbsp;' + bfFlashFileQueue".$mdata['dbId']."[qID].fname + bfFlashFileQueue".$mdata['dbId']."[qID].tooLarge );
    1413                                                             }
    1414                                                         },
    1415                                     'scriptData'     : { form: ".$this->p->form.", itemName : '".$mdata['bfName']."', bfFlashUploadTicket: '".$this->flashUploadTicket."', option: 'com_breezingforms', format: 'html', flashUpload: 'true', Itemid: 0 },
    1416                                     //'onError'        : function(e,q,f,err) {alert(err.info)},
    1417                                     'onComplete'     : function(event, queueID, fileObj, response, data){ if(response!='1')alert( response ) }
    1418                                     ".$exts."
    1419                                 };
    1420                                                              JQuery('#ff_elem".$mdata['dbId']."').uploadify(bfUploadified_ff_elem".$mdata['dbId'].");
    1421                             //-->
    1422                                                         </script>
    1423                             ";
    1424                         }
    14251360                        if($mdata['attachToAdminMail']){
    14261361                            echo '<input type="hidden" name="attachToAdminMail['.$mdata['bfName'].']" value="true"/>'."\n";
     
    17411676                $this->process($this->dataObject);
    17421677        echo '</div>'."\n"; // closing last page
    1743                 if( $this->hasFlashUpload ){
    1744             $tickets = JFactory::getSession()->get('bfFlashUploadTickets', array());
    1745             $tickets[$this->flashUploadTicket] = array(); // stores file info for later processing
    1746             JFactory::getSession()->set('bfFlashUploadTickets', $tickets);
    1747             echo '<input type="hidden" name="bfFlashUploadTicket" value="'.$this->flashUploadTicket.'"/>'."\n";
    1748             $this->addScript(BF_PLUGINS_URL . '/'.BF_FOLDER.'/platform/components/com_breezingforms/libraries/jquery/swfobject.js');
    1749             $this->addScript(BF_PLUGINS_URL . '/'.BF_FOLDER.'/platform/components/com_breezingforms/libraries/jquery/jquery.uploadify.v2.1.0.min.js');
    1750             $this->addScript(BF_PLUGINS_URL . '/'.BF_FOLDER.'/platform/components/com_breezingforms/libraries/jquery/center.js');
    1751             $this->addScriptDeclaration('
    1752             var bfFlashUploadInterval = null;
    1753             var bfFlashUploadTooLarge = {};
    1754             var bfFlashUploadAll = {};
    1755             var bfFlashUploaders = new Array();
    1756                         var bfFlashUploadersLength = 0;
    1757             function bfDoFlashUpload(){
    1758                        
    1759                 JQuery("#bfSubmitMessage").css("visibility","hidden");
    1760                 JQuery(".bfErrorMessage").html("");
    1761                                 JQuery(".bfErrorMessage").css("display","none");
    1762                                 for(qID in bfFlashUploadTooLarge){
    1763                                         try{
    1764                         JQuery(bfFlashUploadTooLarge[qID]).uploadifyCancel(qID);
    1765                                                 if(bfFlashUploadersLength > 0) bfFlashUploadersLength--;
    1766                     } catch(e){}
    1767                 }
    1768                 bfFlashUploadTooLarge = {};
    1769                                 if(ff_validation(0) == ""){
    1770                     try{
    1771                                                 bfFlashUploadInterval = window.setInterval( bfCheckFlashUploadProgress, 100 );
    1772                                                 JQuery("#bfFileQueue").bfcenter(true);
    1773                                                 JQuery("#bfFileQueue").css("visibility","visible");
    1774                         for(var i = 0; i < bfFlashUploaders.length;i++){
    1775                             try{
    1776                                                             JQuery("#"+bfFlashUploaders[i]).uploadifyUpload();
    1777                                                                
    1778                             } catch(e){}
    1779                         }
    1780                     } catch(e){alert(e)}
    1781                 } else {
    1782                     if(typeof bfUseErrorAlerts == "undefined"){
    1783                                             alert(error);
    1784                                         } else {
    1785                                             bfShowErrors(error);
    1786                                         }
    1787                                         ff_validationFocus("");
    1788                 }
    1789             }
    1790             function bfCheckFlashUploadProgress(){
    1791                 if( JQuery("#bfFileQueue").html() == "" ){ // empty indicates that all queues are uploaded or in any way cancelled
    1792                     JQuery("#bfFileQueue").css("visibility","hidden");
    1793                     window.clearInterval( bfFlashUploadInterval );
    1794                                         if(typeof bfAjaxObject101 != \'undefined\' || typeof bfReCaptchaLoaded != \'undefined\'){
    1795                                             ff_submitForm2();
    1796                                         }else{
    1797                                             ff_validate_submit(document.getElementById("bfSubmitButton"), "click");
    1798                                         }
    1799                     JQuery(".bfFlashFileQueueClass").html("");
    1800                                         if(bfFlashUploadersLength > 0){
    1801                                             JQuery("#bfSubmitMessage").bfcenter(true);
    1802                                             JQuery("#bfSubmitMessage").css("visibility","visible");
    1803                                         }
    1804                 }
    1805             }
    1806             ');
    1807             echo "<div style=\"visibility:hidden;\" id=\"bfFileQueue\"></div>";
    1808             echo "<div style=\"visibility:hidden;\" id=\"bfSubmitMessage\">".BFText::_('COM_BREEZINGFORMS_SUBMIT_MESSAGE')."</div>";
    1809                        
    1810         }
     1678               
    18111679        echo '<noscript>Please turn on javascript to submit your data. Thank you!</noscript>'."\n";
    18121680               
  • breezing-forms/trunk/platform/components/com_breezingforms/facileforms.class.php

    r1227085 r1265689  
    1111global $ff_version, $ff_resnames, $ff_request, $ff_target;
    1212
    13 $ff_version = '1.2.7.33 FREE VERSION (build 270)';
     13$ff_version = '1.2.7.34 FREE VERSION (build 271)';
    1414$ff_target  = 0;
    1515
  • breezing-forms/trunk/platform/components/com_breezingforms/themes/quickmode/system.css

    r762621 r1265689  
    501501    margin: 5px;
    502502    padding: 10px;
    503 }
    504 
    505 .uploadifyQueueItem {
    506     font: 11px Verdana, Geneva, sans-serif;
    507     border: 2px solid #E5E5E5;
    508     background-color: #F5F5F5;
    509     margin-top: 5px;
    510     padding: 10px;
    511     width: 350px;
    512 }
    513 
    514 .uploadifyError {
    515     border: 2px solid #FBCBBC !important;
    516     background-color: #FDE5DD !important;
    517 }
    518 
    519 .uploadifyQueueItem .cancel {
    520     float: right;
    521 }
    522 
    523 .uploadifyProgress {
    524     background-color: #FFFFFF;
    525     border-top: 1px solid #808080;
    526     border-left: 1px solid #808080;
    527     border-right: 1px solid #C5C5C5;
    528     border-bottom: 1px solid #C5C5C5;
    529     margin-top: 10px;
    530     width: 100%;
    531 }
    532 
    533 .uploadifyProgressBar {
    534     background-color: #0099FF;
    535     width: 1px;
    536     height: 3px;
    537503}
    538504
  • breezing-forms/trunk/readme.txt

    r1227085 r1265689  
    55Requires at least: 3.0
    66Tested up to: 5.0
    7 Stable tag: 1.2.7.33
     7Stable tag: 1.2.7.34
    88License: GPL 2
    99
     
    158158== Changelog ==
    159159
     160= 1.2.7.34 =
     161 ! removed Uploadify references due to possible XSS vulnerabilities. Please update Breezing Forms immediately to make sure everything's fine.
     162
    160163= 1.2.7.33 =
    161164 * minor style adjustments for WP 4.3
Note: See TracChangeset for help on using the changeset viewer.