|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 74
Members: 0
Total: 74
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
about the globals globals |
|
Posted: Mon Sep 19, 2005 7:09 pm |
|
|
Devil-00 |
Regular user |
|
|
Joined: Apr 27, 2005 |
Posts: 6 |
Location: Palestine , Jerusalem |
|
|
|
|
|
|
Hello
i want ask about The Globals
my question is ..!!
if i used extract($GLOBALS); in the functions ..
example
Quote: | function checklogin()
{
Extract($GLOBALS);
$UserID=$this->checkval($_COOKIE['UserID']);
$UserPassword=$_COOKIE['UserPassword'];
if(!$this->checkmd5($UserPassword))
{
return false;
}
else
{
$query=$DB->query("Select UserID from "._PREFIX_."users where UserID='$UserID' And UserPassword='$UserPassword'");
$numrows=$DB->num_rows($query);
if($numrows<1)
{
return False;
}
else
{
return True;
}
}
} |
i use that in the style functions and like that .. so
Does that make any Vuls in the script ..
i mean any security errors ..
and in the config file which is the first file in the script ..
$GLOBALS="";
So It Wont take the http vars as i think ..
is that currect ??
or i should do another way on keeping my programs secured ??
i need an answer ..
bye |
|
|
|
|
|
|
|
|
Posted: Tue Sep 27, 2005 3:01 pm |
|
|
Devil-00 |
Regular user |
|
|
Joined: Apr 27, 2005 |
Posts: 6 |
Location: Palestine , Jerusalem |
|
|
|
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> General discussion
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|