中国网络渗透测试联盟

标题: 蚂蚁信息分类系统mymps_1.6gbk 最新0day [打印本页]

作者: admin    时间: 2013-2-4 16:13
标题: 蚂蚁信息分类系统mymps_1.6gbk 最新0day

. g! L  O) I$ d+ T出现在评论处,小问题。放出来怕笑话呢。。
' y. A9 b8 Y; B9 ~+ w( n; ^01 }elseif($do == 'view'){( d! O- f$ V0 C, D, w( F; d, A
02
1 P! G* g# v; i# K* X! r( s' `& Q3 U03        require_once(dirname(__FILE__)."/global.php");
1 N: o# ^6 g- ?9 {6 l, L04        require_once(MYMPS_INC."/member.class.php");# s% i, Y+ P: s' w* `6 r; q0 e
05        require_once(MYMPS_INC."/ip.class.php");
$ y/ ?. j4 \. V, ^7 Q9 R06 3 g' C; W$ ~7 V+ |
07        if(!empty($part)&&$action == 'write'){
  N- e. {' q$ P; d+ `' K08                if(if_other_site_post()){
' w5 A' D9 L- o3 G09                        $msgs[]="请不要尝试从站外提交数据!";5 b5 \" u7 ]& W' J# N
10                        show_msg($msgs);* T8 a6 D. m4 K( ?
11                        exit();/ _. v# e! I# o
12                }" c9 @! `( h3 T
13
6 R0 w' n) S( a# C+ w/ u7 }14
# O: f1 G9 H4 |0 k15                //mymps_chk_randcode();
& f4 I% c3 F4 i+ Z6 b& g% p16
" T* n+ g& w% U4 ~17                $content = $_POST[content];2 b  j6 M" i: C# e
18                if(empty($content)){write_msg("请填写评论内容!");exit();}7 w" X1 n; o( w- g5 ~- n
19                if(strlen($content)>255){write_msg("请不要填写超过127个汉字!");exit();}
9 O" g) j7 \0 p0 c3 J/ @1 Q3 z6 S20                $result                 = verify_badwords_filter($mymps_global[cfg_if_comment_verify],'',$_POST[content]);
& j1 J  o. D; Q0 Y21                $content                 = textarea_post_change($result[content]);- S, V' ~5 y7 N6 N% X0 }! l
22                $comment_level  = $result[level];
2 ^5 A- E3 A$ f7 n23                $userid                        = $_GET['userid'];
- I/ F3 n0 M3 J$ I: Y( M! x% |24
$ v- U/ w+ S: A# b25 5 d4 g2 x& ~/ M; ]& K, |& a* R/ _

; ^( f3 G; R0 C) W7 M5 @26                $db->query("INSERT INTO `{$db_mymps}".$part."_comment` (".$part."id,content,pubtime,ip,comment_level,userid)VALUES('$id','$content','".time()."','".GetIP()."','$comment_level','".$_POST[userid]."')");
, l. x: v1 c6 R& a" y* F' l27                echo "INSERT INTO `{$db_mymps}".$part."_comment` (".$part."id,content,pubtime,ip,comment_level,userid)VALUES('$id','$content','".time()."','".GetIP()."','$comment_level','".$_POST[userid]."')";//userid和getip都没处理好。出现问题了。% ]! m# K+ c- e0 n! K+ W
28                if($comment_level == '1'){
" w# R4 `$ Y& n8 I) M9 e9 s29                        write_msg("您的评论提交成功!","?part=".$part."&id=".$id);2 i% Y( i1 G1 u: u4 `
30                }
( T8 j5 [4 t3 `5 b31                else{
" n2 s" w  I5 d: X: x  I32                        write_msg("您提交的留言可能含有违禁词语,审核通过后显示!","?part=".$part."&id=".$id);! T& P& P9 @0 h& y- g
33                }
- h4 ~3 y  {! f34                exit();
0 H( D; v3 H1 A6 p2 ]  N35        }+ @& l& g3 x  W0 x$ v
结果出现问题了,2 r' m% u& n5 Z! u* B- }

. q5 e( {$ o# w2 V5 m6 U接下来就是
  J( k/ ]7 ~4 _7 ?& B) p8 M1 _: ^: P! m0 N$ N8 W/ V) G
直接爆出管理员账号加MD5…7 I7 b4 I: @9 B* {/ O" t





欢迎光临 中国网络渗透测试联盟 (https://cobjon.com/) Powered by Discuz! X3.2