中国网络渗透测试联盟
标题:
蚂蚁信息分类系统mymps_1.6gbk 最新0day
[打印本页]
作者:
admin
时间:
2013-2-4 16:13
标题:
蚂蚁信息分类系统mymps_1.6gbk 最新0day
% a7 V+ z6 R+ \3 a5 |2 w2 F
出现在评论处,小问题。放出来怕笑话呢。。
) t3 i& \$ q; u1 R6 Y1 ?
01 }elseif($do == 'view'){
: e( f7 i) W# L; R: l6 z6 E( `
02
l, d5 X# E2 T! l- M
03 require_once(dirname(__FILE__)."/global.php");
& n; Q1 w7 x0 ~2 |3 S* o% i
04 require_once(MYMPS_INC."/member.class.php");
. b, S$ I- q2 e( }2 L
05 require_once(MYMPS_INC."/ip.class.php");
. S. y' @0 M2 A# g5 `
06
4 Z. l7 x/ i9 ]
07 if(!empty($part)&&$action == 'write'){
+ ?- f3 D c7 M! M3 y3 A1 i
08 if(if_other_site_post()){
" q& v' e4 I! V. B0 @
09 $msgs[]="请不要尝试从站外提交数据!";
" M3 B* s7 w* { ]3 {! ~& y
10 show_msg($msgs);
1 f K( ]" Q9 @4 B( o( W! _
11 exit();
0 P" Q$ K7 \5 S
12 }
( u0 S$ y8 C& z6 d) V
13
* _; ~! {* `2 r1 N$ r
14
6 \/ E# `3 W3 Y5 A( I/ r7 R
15 //mymps_chk_randcode();
- j! v" d' b, r8 P% T) A8 v4 V
16
/ K4 T- @9 n' k' N8 W8 O) ^, ?
17 $content = $_POST[content];
# b" f( U0 g4 O& S5 q7 N
18 if(empty($content)){write_msg("请填写评论内容!");exit();}
1 E( u4 z! @6 Q
19 if(strlen($content)>255){write_msg("请不要填写超过127个汉字!");exit();}
" y6 g% P( s1 r* U
20 $result = verify_badwords_filter($mymps_global[cfg_if_comment_verify],'',$_POST[content]);
/ o5 b4 `$ U. U3 m: F: Q# i
21 $content = textarea_post_change($result[content]);
6 r0 I" y1 N& E' P6 ~
22 $comment_level = $result[level];
' _* _- U5 o8 |5 t* h t" ^
23 $userid = $_GET['userid'];
7 G% r# `9 y6 G( a5 q
24
8 \. b/ y1 \. \
25
5 H9 }- S, E6 J8 X. U8 W% K
( _& J" `; g; X; v% i
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( i2 r& \6 h3 ]* V2 w& g
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都没处理好。出现问题了。
) l3 S! F' \1 d( J
28 if($comment_level == '1'){
! D+ W( e9 d% V- @! i
29 write_msg("您的评论提交成功!","?part=".$part."&id=".$id);
9 }, i& n8 r! Z% W2 U1 e7 y
30 }
$ i; \7 t7 ?4 X; I/ Q* ]3 {" ?
31 else{
2 t& X7 A3 ?: a- R
32 write_msg("您提交的留言可能含有违禁词语,审核通过后显示!","?part=".$part."&id=".$id);
( i( u8 U( I& h. u! R
33 }
$ I% ^: b+ A, g" T
34 exit();
* O5 t: {- \9 ]4 p
35 }
' |% ~% ]7 f6 K2 c: K0 [
结果出现问题了,
8 E8 \. W! A& g5 z1 M0 Y# o
0 w4 l( ~( }& e6 k5 F0 w6 h
接下来就是
, j+ o$ b5 F) h7 g" d
' Z1 p0 b& G# z( [
直接爆出管理员账号加MD5…
& |- I9 [3 c M" e
欢迎光临 中国网络渗透测试联盟 (https://cobjon.com/)
Powered by Discuz! X3.2