|
MyBB 1.6.2 Güvenlik Güncellemesi
Elle Yapılıcak İşlemler Aşağıdaki Gibidir.Ek olarak sayfanın altında değişen dosyaların orjinallerini bulabilirsiniz.
Değişen Dosyalar :
# admin/modules/tools/modlog.php
# inc/class_parser.php
# jscripts/validator.js
# modcp.php
# xmlhttp.php
# inc/class_core.php
# member.php
Aç :
===============
1. admin/modules/tools/modlog.php
===============
Bul :
--
PHP Kod:
while($logitem = $db->fetch_array($query)) { $information = ''; $logitem['dateline'] = date("jS M Y, G:i", $logitem['dateline']); $trow = alt_trow(); $username = format_name($logitem['username'], $logitem['usergroup'], $logitem['displaygroup']);
--
Bununla Değiştir :
--
PHP Kod:
while($logitem = $db->fetch_array($query)) { $information = ''; $logitem['action'] = htmlspecialchars_uni($logitem['action']); $logitem['dateline'] = date("jS M Y, G:i", $logitem['dateline']); $trow = alt_trow(); $username = format_name($logitem['username'], $logitem['usergroup'], $logitem['displaygroup']);
--
Aç
===============
2. inc/class_parser.php
===============
Sil :
--
PHP Kod:
// Remove these completely $message = preg_replace("#\s*<base[^>]*>\s*#is", "", $message); $message = preg_replace("#\s*<meta[^>]*>\s*#is", "", $message);
--
Bul :
--
PHP Kod:
if($this->options['allow_mycode']) { // Now that we're done, if we split up any code tags, parse them and glue it all back together if(count($code_matches) > 0) { foreach($code_matches as $text) { // Fix up HTML inside the code tags so it is clean if($options['allow_html'] != 0) { $text[2] = $this->parse_html($text[2]); }
if(my_strtolower($text[1]) == "code") { $code = $this->mycode_parse_code($text[2]); }
--
Bununla Değiştir :
--
PHP Kod:
if($this->options['allow_mycode']) { // Now that we're done, if we split up any code tags, parse them and glue it all back together if(count($code_matches) > 0) { foreach($code_matches as $text) { if(my_strtolower($text[1]) == "code") { $code = $this->mycode_parse_code($text[2]); }
--
Bul :
--
PHP Kod:
if($options['nl2br'] !== 0)
--
Bununla değiştir :
--
PHP Kod:
// Replace meta and base tags in our post - these are > dangerous < if($this->options['allow_html']) { $message = preg_replace_callback("#<((m[^a])|(b[^diloru>])|(s[^aemptu>]))(\s*[^>]*)>#si", create_function( '$matches', 'return htmlspecialchars($matches[0]);' ), $message); }
if($options['nl2br'] !== 0)
--
Bul :
--
PHP Kod:
"#(&\#(0*)106;|&\#(0*)74;|j)((&\#(0*)97;|&\#(0*)65;|a)(&\#(0*)118;|&\#(0*)86;|v)(&\#(0*)97;|&\#(0*)65;|a)(\s)?(&\#(0*)115;|&\#(0*)83;|s)(&\#(0*)99;|&\#(0*)67;|c)(&\#(0*)114;|&\#(0*)82;|r)(&\#(0*)105;|&\#(0*)73;|i)(&\#112;|&\#(0*)80;|p)(&\#(0*)116;|&\#(0*)84;|t)(&\#(0*)58;|\:))#i",
--
Bununla Değiştir :
--
PHP Kod:
""#(&\#(0*)106;?|&\#(0*)74;?|&\#x(0*)4a;?|&\#x(0*)6a;?|j)((&\#(0*)97;?|&\#(0*)65;?|a)(&\#(0*)118;?|&\#(0*)86;?|v)(&\#(0*)97;?|&\#(0*)65;?|a)(\s)?(&\#(0*)115;?|&\#(0*)83;?|s)(&\#(0*)99;?|&\#(0*)67;?|c)(&\#(0*)114;?|&\#(0*)82;?|r)(&\#(0*)105;?|&\#(0*)73;?|i)(&\#112;?|&\#(0*)80;?|p)(&\#(0*)116;?|&\#(0*)84;?|t)(&\#(0*)58;?|\:))#i",
--
Aç
===============
3. jscripts/validator.js
===============
Bul :
--
PHP Kod:
new Ajax.Request(options.url, {method:'post', postBody:"value=" + encodeURIComponent(value) + extra, onComplete: function(request) { this.ajaxValidateComplete(id, options, request); }.bind(this)});
--
Değiştir :
--
PHP Kod:
new Ajax.Request(options.url, {method:'post', postBody:"value=" + encodeURIComponent(value) + extra + "&my_post_key=" + my_post_key, onComplete: function(request) { this.ajaxValidateComplete(id, options, request); }.bind(this)});
--
Aç
===============
4. modcp.php
===============
Bul :
--
PHP Kod:
while($logitem = $db->fetch_array($query)) { $information = ''; $log_date = my_date($mybb->settings['dateformat'], $logitem['dateline']); $log_time = my_date($mybb->settings['timeformat'], $logitem['dateline']); $trow = alt_trow();
--
Bununla değiştir :
--
PHP Kod:
while($logitem = $db->fetch_array($query)) { $information = ''; $logitem['action'] = htmlspecialchars_uni($logitem['action']); $log_date = my_date($mybb->settings['dateformat'], $logitem['dateline']); $log_time = my_date($mybb->settings['timeformat'], $logitem['dateline']); $trow = alt_trow();
--
Aç :
===============
5. xmlhttp.php
===============
Bul :
--
PHP Kod:
else if($mybb->input['action'] == "username_availability") {
--
Değiştir :
--
PHP Kod:
else if($mybb->input['action'] == "username_availability") { if(!verify_post_check($mybb->input['my_post_key'], true)) { xmlhttp_error($lang->invalid_post_code); }
--
Bul:
--
PHP Kod:
$lang->username_taken = $lang->sprintf($lang->username_taken, $username);
--
Değiştir :
-- PHP Kod:
$lang->username_taken = $lang->sprintf($lang->username_taken, htmlspecialchars_uni($username));
--
Bul:
--
PHP Kod:
$lang->username_available = $lang->sprintf($lang->username_available, $username);
--
Değiştir:
--
PHP Kod:
$lang->username_available = $lang->sprintf($lang->username_available, htmlspecialchars_uni($username));
--
Bul:
--
PHP Kod:
else if($mybb->input['action'] == "username_exists") {
--
Değiştir:
--
PHP Kod:
else if($mybb->input['action'] == "username_exists") { if(!verify_post_check($mybb->input['my_post_key'], true)) { xmlhttp_error($lang->invalid_post_code); }
--
Bul:
--
PHP Kod:
$lang->valid_username = $lang->sprintf($lang->valid_username, $username);
--
Değiştir:
--
PHP Kod:
$lang->valid_username = $lang->sprintf($lang->valid_username, htmlspecialchars_uni($username));
--
Aç
===============
6. inc/class_core.php
===============
Bul:
--
PHP Kod:
public $version = "1.6.1";
--
Değiştir:
--
PHP Kod:
public $version = "1.6.2";
--
Bul:
--
PHP Kod:
public $version_code = 1601;
--
Değiştir:
--
PHP Kod:
public $version_code = 1602;
--
Aç
===============
7. member.php
===============
Bul:
--
PHP Kod:
// Redirect to the page where the user came from, but not if that was the login page. if($mybb->input['url'] && !preg_match("/action=login/i", $mybb->input['url'])) { $redirect_url = htmlentities($mybb->input['url']); } elseif($_SERVER['HTTP_REFERER']) { $redirect_url = htmlentities($_SERVER['HTTP_REFERER']); }
--
Değiştir:
--
PHP Kod:
// Redirect to the page where the user came from, but not if that was the login page. if($_SERVER['HTTP_REFERER'] && strpos($_SERVER['HTTP_REFERER'], "action=login") === false) { $redirect_url = htmlentities($_SERVER['HTTP_REFERER']); } else { $redirect_url = ''; }
--
Elle Güncelleme Tamamlanmıştır.
Mybbbturkiye.Com'a Teşekkürler..
Linkleri görebilmek için sitemize kayıt olun.
Linkleri görebilmek için sitemize kayıt olun.
|
|