homepage Welcome to WebmasterWorld Guest from 54.163.72.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
Register Globals - workaround?
rhonda427




msg:3558754
 4:46 pm on Jan 26, 2008 (gmt 0)

I have 5 old Oscommerce sites on my own dedicated server, all with Register Globals on. Not being a programmer, and with lots of contributions installed, I hope there is some kind of protection to at least remove some loop-holes? Rather than implementing Register Globals Off, I plan in the little longer term to possibly migrate to another ecommerce platform (with register Globals off) as Oscommerce seems to be dying.

In another (old) thread I saw a link to an "Auto Replace" program, that would read through the scripts and make some modifications automatically. The link didn't work though (from 2004 or 2005). Does anyone know where to find such a program, or possibly advise on any protective changes I could perform in my scripts?

Thanks!

 

coopster




msg:3558768
 5:09 pm on Jan 26, 2008 (gmt 0)

I hope there is some kind of protection to at least remove some loop-holes?

If you are running an old version of software that has not been patched since register_globals has been addressed ... I think you may have more issues than just register globals. I would upgrade the software. Surely there is an upgrade path for you?

rhonda427




msg:3558796
 6:23 pm on Jan 26, 2008 (gmt 0)

Thanks Coopster. You are probably right, but due to the opensource - and somewhat chaotic way - in which contributions are made in Oscommerce, I doubt a patch can be applied with any ease. It would probably require a line-by-line comparison using for example Beyondcompare.

Probably this would be a good thing to do, but the issue of Register Globals has not yet been formally addressed in oscommerce. The only solution is a contribution made by a private guy, but this does not take into consideration all the code made in the other private contributions.

Rather than starting a big project to prepare my Oscommerce sites for PHP5, and register Globals, I would appreciate some advise to make my sites a bit safer. Although I know of course that the right thing to do would be a complete code clean-up and then go to PHP5. But s mentioned, there seems to be no development on the oscommerce platform, so I would prefer to migrate to a never platform and put my efforts in this project.

coopster




msg:3559925
 7:05 pm on Jan 28, 2008 (gmt 0)

I would appreciate some advise to make my sites a bit safer.

I guess that is what I was attempting to do. The last thing I want you to have is a false sense of security. The only think Using Register Globals [php.net] is going to do for you is make sure you are initializing and using variables as intended.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved