统计在线人数...

心空论坛(CKong) v2.3 SQL注射漏洞

[ 来源:不详 | 作者:neeao | 时间:2005-8-1 8:45:09 | 浏览:统计中... ]


来自:heige's Blog

post.php:
f(!$C_errormsg) {
 if($postid) {
 $sql='select post_content,post_date,user_name from '.__TAB_POST__.' where post_id='.$postid;
 $result=$db->sql_query($sql);
 $rows=$db->sql_fetchrow($result);
 $qcontent=preg_replace("/\[quote\](.*)\[\/quote\]/is","",$rows['post_content']);
 $qtime=date("Y-n-j G:i",$rows['date']);
 $articlecontent='
引用
引用'.$rows['user_name'].'于'.$qtime."发表的文章: \n".$qcontent."
\n";
 }

$postid没过滤:

msgbox.php:
}elseif($action=='read') {
 $sql="select msg_id from ".__TAB_MSG__." where user_name='".$_SESSION['username']."' and msg_id>$msgid and msg_kind='$kind' order by msg_id limit 1";
 $result=$db->sql_query($sql);
 $rows=$db->sql_fetchrow($result);
 $nextmsgid=$rows['msg_id'];



$msgid没过滤
共有0人参与评价,平均得分:0分
评论内容只代表网友观点,与本站立场无关! 查看完整内容
   

当前在线人数
QQ:748838 MSN:allen_xia#msn.com E-mail:allenxia666#126.com QQ群:站长联盟北方区-北京(28200145) 站长联盟南方区-上海(67713522)