One of my mates wants me to turn register_globals settings on, but last time i did this it cause all sorts of problems, i was just looking for some other views on the matter.
This is a discussion on register_globals in the VPS & Dedicated forum
One of my mates wants me to turn register_globals settings on, but last time i did this it cause all sorts of problems, i was ...
One of my mates wants me to turn register_globals settings on, but last time i did this it cause all sorts of problems, i was just looking for some other views on the matter.
Eh.. why would he want that?
Regards,
Wim Heemskerk
---
Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
And Gwaihir.net - The Middle-earth CCG store
Tell your mate to rewrite his ^%$& code...
Dude, this is like soooo 2006!
Hackers will eat your mate alive, assuming they know he's alive...
DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.
Point him to this...
http://us2.php.net/register_globals
DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.
And tell him he should follow up on the note on superglobals at the bottom if he wants to know how easy it is to do without register_globals.
Regards,
Wim Heemskerk
---
Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
And Gwaihir.net - The Middle-earth CCG store
Not quite.Originally Posted by Vin DSL
You can emulate register_globals anyway. Just don't.Originally Posted by RickWeb
This is the response i get
Originally Posted by Adam
There are community fixes for running osCommerce with register_globals off. I wouldn't want to comment on whether they are secure or not.
as of 2.2RC1 it should not be a issuse
http://forums.oscommerce.com/index.php?showtopic=268335
Yet we have Fantastico and it works without a hitch..
Sorry to say it, but he is really years behind the times.
Right; it might take.. wow.. a whole minute longer than typing that e-mail?and I think trying to tweak the whole OS Commerce package to accommodate a server without register_globals wouldn't even be worth trying.
Surely, like any application, OS Commerce includes some form of utitily script in each and every page. All it would take is to add the emulation homoludens pointed out at the top of that script. This is obviously still not a great way to go, but at least limits the risks to the one outdated application that actually uses it.
That depends on whether you run PHP in CGI mode (with seperate users), or as a module (with one php user for the whole server / VPS). In the first case it would risk the account, in the latter case the whole server / VPS.Is there no other way around this? What sort of security risks would be posed by having this feature turned on? Would this put just the domain at risk, or the entire server?
Regards,
Wim Heemskerk
---
Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
And Gwaihir.net - The Middle-earth CCG store
I will set he straight next time.
DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.
You can enable register_globals in just the directories used by OS Commerce via an Apache directive (if using mod_php) or custom php.ini file(s) is using PHP-CGI.
Disable register_globals for the whole site/server, then in the OS Commerce directory just add this to the .htaccess file if using mod_php:
or, if using PHP-CGI, copy your main php.ini file to the directory where OS Commerce is installed and change the register_globals setting of the copy.Code:php_flag register_globals on
--Jason
Copyright © 2011 JaguarPC.com
Bookmarks