Changeset 496048
- Timestamp:
- 01/27/2012 09:26:34 AM (14 years ago)
- Location:
- myeasybackup/trunk
- Files:
-
- 7 edited
-
ajax_ro.php (modified) (9 diffs)
-
inc/myEASYcom.php (modified) (1 diff)
-
meb-config.php (modified) (1 diff)
-
meb_download.php (modified) (1 diff)
-
meb_settings.php (modified) (3 diffs)
-
myeasybackup.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
myeasybackup/trunk/ajax_ro.php
r403768 r496048 6 6 * @author Ugo Grandolini 7 7 * @since 0.1.3 8 * @version 1.0. 5.78 * @version 1.0.11 9 9 */ 10 10 … … 38 38 //$referer = $path[0]; 39 39 //echo '$referer['.$referer.']'; 40 //var_dump($_SERVER); 41 40 42 /* 41 43 * var_dump($_SERVER); … … 56 58 && isset($_SERVER['HTTP_REFERER'])) { /* this entire condition @since 1.0.5.9 */ 57 59 58 if(stripos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_NAME']) !==false59 && stripos($_SERVER['HTTP_HOST'], $_SERVER['HTTP_REFERER']) !==false) {60 if(stripos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_NAME']) !== false 61 && stripos($_SERVER['HTTP_HOST'], $_SERVER['HTTP_REFERER']) !== false) { 60 62 #------------- 61 63 # 1.0.0: END 62 64 # 63 echo $_POST['tag']65 echo strip_tags($_POST['tag']) 64 66 .$splitter_tag 65 67 .'<div class="warning">' … … 128 130 } 129 131 132 133 134 135 if(!function_exists('wp_create_nonce')) { 136 137 require_once( ABSPATH . 'wp-includes/pluggable.php'); 138 } 139 140 $meb_backup_ajax_validator = $parms[(count($parms) - 1)]; 141 $meb_backup_ajax_validator_key = dirname(__FILE__); 142 143 if(! wp_verify_nonce($meb_backup_ajax_validator, $meb_backup_ajax_validator_key)) { 144 145 /** 146 * @since 1.0.11 147 */ 148 echo strip_tags($_POST['tag']) . $splitter_tag 149 . '<div class="warning">' 150 . __( 'There is an issue with the caller...', MEBAK_LOCALE ) 151 // . '<br>' . $meb_backup_ajax_validator . ' | ' . $meb_backup_ajax_validator_key . ' = ' . wp_verify_nonce($meb_backup_ajax_validator, $meb_backup_ajax_validator_key) // debug 152 . '</div>'; 153 154 exit(); 155 } 156 130 157 # 131 158 # $parms … … 260 287 .'<div style="float:left;">' 261 288 .'<p style="margin:0;cursor:pointer;" onclick="javascript:' 262 .'sndReq(\'get_site_dirs_list\',\'dirs_list_container\',\''.$up_folder .'\');'289 .'sndReq(\'get_site_dirs_list\',\'dirs_list_container\',\''.$up_folder . AJAX_PARMS_SPLITTER . $meb_backup_ajax_validator .'\');' 263 290 .'">' 264 291 //. '{{{ back to: '.$up_folder.' }}}' … … 296 323 297 324 echo '<p class="item_folder" style="margin:0;cursor:pointer;" onclick="javascript:' 298 .'sndReq(\'get_site_dirs_list\',\'dirs_list_container\',\''.$parms[0].'/'.$fname .'\');'325 .'sndReq(\'get_site_dirs_list\',\'dirs_list_container\',\''.$parms[0].'/'.$fname . AJAX_PARMS_SPLITTER . $meb_backup_ajax_validator .'\');' 299 326 .'">' . $tmp . $fname . '</p>'; 300 327 $t++; … … 321 348 . '</p>' 322 349 323 .'<input id="new_folder" name="newfolder" type="text" value="' .$_POST['newfolder'].'" size="40" maxlength="128" />'350 .'<input id="new_folder" name="newfolder" type="text" value="' . strip_tags($_POST['newfolder']) . '" size="40" maxlength="128" />' // 1.0.11 324 351 325 352 .'<div style="text-align:right;margin-top:8px;">' … … 329 356 .'if(document.getElementById(\'new_folder\').value!=\'\'){' 330 357 //.'alert(document.getElementById(\'new_folder\').value);' #debug 331 .'sndReq(\'create_dir_exec\',\'dirs_list_container_msgs\',\''.$parms[0].AJAX_PARMS_SPLITTER.'\'+document.getElementById(\'new_folder\').value );'358 .'sndReq(\'create_dir_exec\',\'dirs_list_container_msgs\',\''.$parms[0].AJAX_PARMS_SPLITTER.'\'+document.getElementById(\'new_folder\').value+\''. AJAX_PARMS_SPLITTER . $meb_backup_ajax_validator .'\');' 332 359 .'}else{' 333 360 .'alert(\''.__( 'Please enter the name of the folder you want to create!', MEBAK_LOCALE ) . '\');' … … 370 397 echo '<span style="color:green;">' . __( 'Done!', MEBAK_LOCALE ) . '</span>'; 371 398 372 $js = 'sndReq(\'get_site_dirs_list\',\'dirs_list_container\',\''.$parms[0].'/'.$parms[1] .'\');';399 $js = 'sndReq(\'get_site_dirs_list\',\'dirs_list_container\',\''.$parms[0].'/'.$parms[1] . AJAX_PARMS_SPLITTER . $meb_backup_ajax_validator .'\');'; 373 400 } 374 401 else -
myeasybackup/trunk/inc/myEASYcom.php
r491959 r496048 3 3 * myEASYcom.php: common functions for the myEASYwp plugins serie 4 4 * 5 * Version: 1.4 - 26 January 2012 5 6 * Version: 1.3 - 23 July 2011 6 7 * Author: Ugo Grandolini aka "Camaleo" -
myeasybackup/trunk/meb-config.php
r414034 r496048 6 6 * @author Ugo Grandolini 7 7 */ 8 define('MYEASYBACKUP_VERSION', '1.0. 6');8 define('MYEASYBACKUP_VERSION', '1.0.10'); 9 9 define('MEBAK_LOCALE', 'myEASYbackup'); # the locale for translations - 1.0.5.1 10 10 -
myeasybackup/trunk/meb_download.php
r491118 r496048 45 45 $file = MEBAK_BACKUP_PATH . '/' . $file_name; 46 46 47 if(file_exists($file)) 47 //if(file_exists($file)) // 1.0.9 48 if(file_exists($file) && (!is_dir($file))) // 1.0.11 48 49 { 49 50 $bytes = filesize($file); -
myeasybackup/trunk/meb_settings.php
r414034 r496048 1346 1346 .'\'+document.getElementById(\'meb_ftp_timeout\').value+\''.AJAX_PARMS_SPLITTER 1347 1347 .'\'+pasv+\''.AJAX_PARMS_SPLITTER 1348 . MEB_BACKUP_AJAX_VALIDATOR 1348 1349 .'\');' 1349 1350 .'return false;' … … 1425 1426 1426 1427 ?><div id="dirs_list_container" style="background-color:#F1F1F1;width:100%;border:1px solid #DFDFDF;margin:0 0 8px 0;padding:8px;-moz-border-radius:6px;border-radius:6px;"></div> 1427 <script type="text/javascript">sndReq('get_site_dirs_list','dirs_list_container','<?php echo $_POST['meb_backup_root'] ;?>');</script>1428 <script type="text/javascript">sndReq('get_site_dirs_list','dirs_list_container','<?php echo $_POST['meb_backup_root'] . AJAX_PARMS_SPLITTER . MEB_BACKUP_AJAX_VALIDATOR; /* 1.0.10 */ ?>');</script> 1428 1429 </div> 1429 1430 <div style="clear:both;"></div> … … 1487 1488 .'pwd+\''.AJAX_PARMS_SPLITTER 1488 1489 .'\'+document.getElementById(\'meb_ally_pubkey\').value+\''.AJAX_PARMS_SPLITTER 1490 . MEB_BACKUP_AJAX_VALIDATOR 1489 1491 .'\');' 1490 1492 .'return false;' -
myeasybackup/trunk/myeasybackup.php
r491720 r496048 4 4 Plugin URI: http://myeasywp.com/plugins/myeasybackup/ 5 5 Description: Backup your WordPress site (code and database) with a click. 6 Version: 1.0. 96 Version: 1.0.11 7 7 Author: Ugo Grandolini aka "camaleo" 8 8 Author URI: http://grandolini.com 9 9 */ 10 10 /* 11 Copyright (C) 2010 Ugo Grandolini (email : [email protected])11 Copyright (C) 2010,2012 Ugo Grandolini (email : [email protected]) 12 12 13 13 This program is free software: you can redistribute it and/or modify … … 83 83 define('MYEASY_CDN_CSS', MYEASY_CDN . 'css/'); 84 84 define('MYEASY_CDN_JS', MYEASY_CDN . 'js/'); 85 86 85 /* 1.0.8: END */ 87 86 87 88 /* 1.0.11: BEG */ 89 if(!defined('AJAX_CALLER') || AJAX_CALLER == false) { 90 91 if(!function_exists('wp_create_nonce')) { 92 93 require_once( ABSPATH . 'wp-includes/pluggable.php'); 94 } 95 $meb_backup_ajax_validator_key = dirname(__FILE__); 96 $meb_backup_ajax_validator = wp_create_nonce($meb_backup_ajax_validator_key); 97 98 define('MEB_BACKUP_AJAX_VALIDATOR_KEY', $meb_backup_ajax_validator_key); 99 define('MEB_BACKUP_AJAX_VALIDATOR', $meb_backup_ajax_validator); 100 } 101 /* 1.0.11: END */ 88 102 89 103 -
myeasybackup/trunk/readme.txt
r491118 r496048 4 4 Tags: myeasy, backup, migrate, admin, administration, ajax, comments, google, facebook, image, images, links, jquery, plugin, plugins, post, posts, rss, seo, sidebar, social, twitter, video, widget, wordpress, youtube 5 5 Requires at least: 2.5 6 Tested up to: 3.3 7 Stable tag: trunk6 Tested up to: 3.3.* 7 Stable tag: 1.0.11 8 8 9 9 Backup, restore, migrate your WP installation, both code and MySQL tables, with a single click. <a href="http://is.gd/hUwBx" target="_blank">Screen shots</a> … … 70 70 == Changelog == 71 71 72 = 1.0.11 (27 January 2012) = 73 Improves the fix applied with version 1.0.9 and fixes the possibility for malicious user to discover the directory structure of the target site as kindly reported by Pavel Komisarchuk of <a href="http://6scan.com/" target="_blank">6scan.com</a>. 74 72 75 = 1.0.9 (17 January 2012) = 73 Fixes the exploit described at <a href="http://packetstormsecurity.org/files/108711/" >Packet Storm</a>.76 Fixes the exploit described at <a href="http://packetstormsecurity.org/files/108711/" target="_blank">Packet Storm</a>. 74 77 75 78 = 1.0.8.1 (24 July 2011) =
Note: See TracChangeset
for help on using the changeset viewer.