中国网络渗透测试联盟
标题:
蚂蚁信息分类系统mymps_1.6gbk 最新0day
[打印本页]
作者:
admin
时间:
2013-2-4 16:13
标题:
蚂蚁信息分类系统mymps_1.6gbk 最新0day
7 @$ S7 k/ c5 Q9 E9 ?8 n
出现在评论处,小问题。放出来怕笑话呢。。
6 ~4 U9 l# T2 l6 z8 K9 l
01 }elseif($do == 'view'){
% B0 m' q1 z' H4 P5 @7 s" i9 R& x
02
* i: V) g! P3 i9 V
03 require_once(dirname(__FILE__)."/global.php");
) E- w; s, K3 h- h4 D
04 require_once(MYMPS_INC."/member.class.php");
- ?2 N9 S e" Y# ]* ~6 O
05 require_once(MYMPS_INC."/ip.class.php");
+ x4 s8 J7 a: }; | B5 m
06
6 W' F; `7 u3 B" [$ x; }% O6 \
07 if(!empty($part)&&$action == 'write'){
7 n* C4 O$ g- }! u, ]
08 if(if_other_site_post()){
* ^1 v/ r! s( x
09 $msgs[]="请不要尝试从站外提交数据!";
& j5 D. ]6 B, e) o6 [' A
10 show_msg($msgs);
1 C5 ^9 }" j; }" h# |" K0 b
11 exit();
0 s" h1 W+ D( P/ t, B; k& l
12 }
: R3 ^ p$ k. S9 N/ L
13
( c4 [' z$ ]& n3 ]
14
/ z: w5 j7 ~% i6 C6 m2 [
15 //mymps_chk_randcode();
$ O" t6 m+ t+ W2 V6 f* ~- y
16
1 j! J* D( r3 t- o h& G4 k8 q
17 $content = $_POST[content];
( q$ x+ N; r6 J: K4 y
18 if(empty($content)){write_msg("请填写评论内容!");exit();}
1 w0 X; \1 A( X5 U0 T" O
19 if(strlen($content)>255){write_msg("请不要填写超过127个汉字!");exit();}
3 b/ e$ w( T, h9 z8 ~
20 $result = verify_badwords_filter($mymps_global[cfg_if_comment_verify],'',$_POST[content]);
4 K, y( F/ @7 m
21 $content = textarea_post_change($result[content]);
/ q0 n- `& t$ M" D9 \
22 $comment_level = $result[level];
9 L2 T1 E! }6 ~+ S8 X
23 $userid = $_GET['userid'];
2 F( j g8 W3 r o! P( G
24
" Z0 @8 m2 M; h+ p
25
/ a# u. G3 ]5 O: ]7 A; \, R
+ \5 g/ p" d3 l# a u
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]."')");
$ U9 ~; `& m" C4 M" M
27 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都没处理好。出现问题了。
2 C7 w" h1 H' c- |1 z1 E
28 if($comment_level == '1'){
' [# a' a$ s, f4 u+ ]+ B# m7 N
29 write_msg("您的评论提交成功!","?part=".$part."&id=".$id);
& J& H6 a8 h- M# R& G
30 }
9 z" Q1 m; U) R
31 else{
2 n- U. y) _/ `) q3 [+ R: N
32 write_msg("您提交的留言可能含有违禁词语,审核通过后显示!","?part=".$part."&id=".$id);
0 F. j: w' ~+ L# ^. E
33 }
4 S4 u2 d1 Z8 S, Y
34 exit();
" ]: I& y o. H h0 N8 I$ |7 c
35 }
' V r1 _3 G: [' r0 V% d) w
结果出现问题了,
8 d. I/ E3 z0 w
4 c2 |0 @2 E% p N6 c
接下来就是
% h$ C# B: A' \/ B$ m
& x4 U2 y2 U3 X( k
直接爆出管理员账号加MD5…
. Q( G( {8 x+ o
欢迎光临 中国网络渗透测试联盟 (https://www.cobjon.com/)
Powered by Discuz! X3.2