|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: pMachine (PHP) : Include() Security Hole
From: martin f krafft (madduck
madduck.net)
Date: Sun Jun 15 2003 - 03:07:56 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
also sprach Frog Man <leseulfrog
hotmail.com> [2003.06.14.1848 +0200]:
> This will work if register_globals is ON *OR* OFF.
Right, because:
> while(list($var,$val)=each($HTTP_COOKIE_VARS))
> while(list($var,$val)=each($HTTP_GET_VARS))
> while(list($var,$val)=each($HTTP_POST_VARS))
> while(list($var,$val)=each($HTTP_SERVER_VARS))
you are effectively "turning it on", so to speak.
> include ("{$pm_path}config$sfx");
then of course, sfx is going to be a variable, if it's passed into
the script via GET_VARS.
your mistake is using a variable that wasn't explicitly initialised.
other than that i fail to see why this is somethign special.
--
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net
madduck
keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html
get my key here: http://madduck.net/me/gpg/publickey
bill gates, 1984: "640 k ought be enough"
bill gates, 1995: "the internet is not a primary goal for pc usage"
bill gates, 1999: "linux has no impact on microsoft's strategy"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+7ClcIgvIgzMMSnURAj4WAJ0Wj7dqSoEn04MdzZ/CUnBXRxkbAwCcCuWm
PwRsoR19giuJVKHvV9aHd2Y=
=5XOn
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]