2GIRL女子拉拉學園

 找回密碼
 註冊
搜索
查看: 2129|回復: 1

[建議] [緊急重要]Discuz! 4.X , 5.x 緊急安全更新

[複製鏈接]

參加活動: 0

組織活動: 0

發表於 2006-10-30 08:48:55 | 顯示全部樓層 |閱讀模式
網站小提醒:2GIRL定期清除90天以上的短消息,重要資料請記得複製到自己的電腦喔
緊急安全更新!!!!!重要!!!!For Discuz! 4.X , 5.x

請所有 使用 4.X , 5.x 論壇的用戶立即修補您的論壇,避免遭受攻擊。
修補方法:修改文件 include/global.func.php
查找下面這段代碼(一般應當在global.func.php 文件的開頭處)

function authcode($string, $operation, $key = '') {
$key = $key ? $key : $GLOBALS['discuz_auth_key'];

$coded = '';
$keylength = strlen($key);
$string = $operation == 'DECODE' ? base64_decode($string) : $string;
for($i = 0; $i < strlen($string); $i += $keylength) {
$coded .= substr($string, $i, $keylength) ^ $key;
}
$coded = $operation == 'ENCODE' ? str_replace('=', '', base64_encode($coded)) : $coded;
return $coded;
}

替換&#29234;

function authcode ($string, $operation, $key = '') {

$key = bin2hex($key ? $key : $GLOBALS['discuz_auth_key']);
$key_length = strlen($key);

$string = $operation == 'DECODE' ? base64_decode($string) : $string;
$string_length = strlen($string);

$rndkey = $box = array();
$result = '';

for ($i = 0; $i <= 255; $i++) {
$rndkey[$i] = ord($key[$i % $key_length]);
$box[$i] = $i;
}

for ($j = $i = 0; $i < 256; $i++) {
$j = ($j + $box[$i] + $rndkey[$i]) % 256;
$tmp = $box[$i];
$box[$i] = $box[$j];
$box[$j] = $tmp;
}

for ($a = $j = $i = 0; $i < $string_length; $i++) {
$a = ($a + 1) % 256;
$j = ($j + $box[$a]) % 256;
$tmp = $box[$a];
$box[$a] = $box[$j];
$box[$j] = $tmp;
$result .= chr(ord($string[$i]) ^ ($box[($box[$a] + $box[$j]) % 256]));
}
return ($operation == 'ENCODE' ? str_replace('=', '', base64_encode($result)) : $result);
}

參加活動: 9

組織活動: 1

發表於 2006-10-30 14:55:49 | 顯示全部樓層
網站小提醒:2GIRL的網址統一變更為 https://www.2girl.net,請記得更改你的「我的最愛/我的書籤」喔
這個10/25的緊急通知已經更新了

接下來要更新10/28日的 :(

感謝您的提醒..:)
回復

使用道具 舉報

小黑屋|手機版|Archiver|信箱|愛女生BBS|隱私權條款|2GIRL女子拉拉學園

GMT+8, 2024-5-10 22:45 , Processed in 0.126341 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表