osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

register_globals solution

This is a discussion on register_globals solution within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Take a look at this link for help with those register_globals problems in OSC . http://www.oscommerce.com/community/...gister_globals I am running an ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-01-2004, 04:33 AM
Lurker
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
poiXoN
Default register_globals solution

Take a look at this link for help with those register_globals problems in OSC.

http://www.oscommerce.com/community/...gister_globals

I am running an install of OSC2.2MS2 now with this code patch and it seems to be working fine (Admin and Catalog both). Mind you, I am new to OSC (about 10 hours) and haven't done extensive testing.

You should *ALWAYS* turn register_globals OFF (default) in your php.ini file(s). This syntax is deprecated in future versions of PHP for severe security flaws/reasons. For those of you who don't know about this, I found this article to be helpful:

http://www.scit.wlv.ac.uk/~jphb/sst/...r_globals.html

BTW in the latest CVS of OSC the register_global issues are being fixed (updated for security reasons). Read here (ID 49):

http://www.oscommerce.com/community/workboard

I installed CVS tonight and the install went fine with globals off. Admin was still broken.

Now I have a question for the seniors here:

Does this OSC fix/contrib (top of this msg) look like it will work with OSCMax?

I am very curious about Max. It looks like it will be easier to MOD its appearance.

Thanks, and Good Luck peeps.

poiXoN
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-17-2004, 07:31 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,070
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: register_globals solution

Hi,

I am not sure if this will break any mods in max. I have put this on my short list to test. It is a great security enhancement, for sure. I appreciate the post.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-26-2005, 07:42 AM
Lurker
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 2 Times in 1 Post
Rep Power: 0
Celadore
Default RE: register_globals solution

Thanks for the post, I could have spent hours trying to fix this!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-26-2005, 02:25 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default RE: register_globals solution

The easies way to fix this would to turn register_globals=on

If your virtual host has is't own php.ini then edit it your self or ask the host - most can do that for you.
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-27-2005, 06:10 PM
Lurker
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adromidon
Default RE: register_globals solution

if you have a jerk for a host like me that is impossible they will not edit ini files for anyone
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-27-2005, 07:24 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,070
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: register_globals solution

Try setting a flag in your htaccess to turn on register globals for your account. It may work:

php_flag register_globals on

but of course, it may not. It is worth a try.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 12-04-2005, 08:55 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: RE: register_globals solution

Quote:
Originally Posted by adromidon
if you have a jerk for a host like me that is impossible they will not edit ini files for anyone
Move hosts - for as little as 60.00 a years...I have TWO great suggestion---

The person who host mine (each site VM has it's own php.ini you can edit - the owner is very flexable - with okay support) - just under $63.00 a year.

As well as AABOX is a great solution (and has a special now for as low as $60/year)- best of all it already is optimized for OSCMAX! (you have to instal oscmax your self for $60 - but that is not hard)
http://aabox.com/hosting_specials.htm


BOTH ARE VERY GOOD PEOPLE THAT HELP THERE CLIENTS - NOT LIKE THE JERKS (that know jack sh**) THAT "BUYS" A BOXED HOSTING COMPANY (RESELLER) PACKAGE THAT THEN CALL THEM SELVES A HOSTING COMPANY!

Any one can aford to jump ship for about $60 for a whole year of hosting! (Unless you got a free site - but that is a whole other headack!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 12-25-2005, 11:04 AM
Lurker
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fmtaylor
Default

Personally I don't think that switching hosting companies is a good solution. Register globals OFF is for a good reason. I can just imagine what I could do to a site that thinks security is secondary.

The response I got from my hosting provider is "wait, if you are going to as about register _globals, we offer classes in proper code design and security for as little as $120/hr. If you need register globals on, then you need to re-evaluate your code design. Sorry, and don't ask again."

And I respect them for that. These guys are not just a bunch of johney code latelys either, learn a little PHP and think they can code. These guys actualy write software, the kind that handles real business data. Not that online shopping carts are not a real business..........

Look at me, my first post and I go insult people, sorry...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 12-31-2005, 10:25 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default

Quote:
Originally Posted by fmtaylor
Personally I don't think that switching hosting companies is a good solution. Register globals OFF is for a good reason. I can just imagine what I could do to a site that thinks security is secondary.

The response I got from my hosting provider is "wait, if you are going to as about register _globals, we offer classes in proper code design and security for as little as $120/hr. If you need register globals on, then you need to re-evaluate your code design. Sorry, and don't ask again."
Don't want to fry you or you host - but register globals on can be achieved with proper checking...which what OSC does. BAD CODING with it on is dangerous......OSC is not badly coded. Just means if you want it OFF it need ALOT to be rewritten - as MUCH of the code originally predates when the replacement functions was included (php2 and early php3...) They properly traps all there globals. OSC was coded to be php3 compatible.

There is above a link to a "PATCH" that allow it too be run if turned off - but WILL NOT run on site with it on. ANY added code would ALSO have to be recoded.....

Feel free to apply the patch - or get the latest OSC MS3 daily (there is no final version yet) as this has it turned off - and ALSO need php4+....


$120/hour to TEACH php - give me a break....(better yet a ski mask and a plastic gun and I could to the same to you).

For HALF of that amount I can have you hosted with a number of other HOSTS who have awesome support (and a great net connection too)...

Except for DNS changed to populate - I can have you hosted elsewhere in 15 min or less.... Switch! It's cheaper faster and better....

The statement they made of globals - is typical of arrogant people/hosting co.. who DON'T listen to their customers and DON'T bother to ACTUALLY LOOK at what there customer wants. Don't encourage these types of companies.

Quote:
Look at me, my first post and I go insult people, sorry...
I don't want to insult people - and a host should listen to there customers and evaluate their point. They exist cause of their customer. Without there customers they are nothing but they will end up as vaporware. (IMHO - sorry).


With a little reading they will find out what the "security" problem relates to "IF you program BADLY....and leave the HOLE open...."

And MANY people - specially "novice" people (or OLD hags like me with bad coding habits....) don't know all the tricks/problems/shortcut.... they tend to write or have poor coding skills...

10,000's OSC (and many other variants) installs can not be wrong – in fact the MS2 base even had a recent update which included a security audit (w/contact us security hole and PHP5 fixes among many other things...) But still has globals turned on (no problems found with it) as there is NO security hole in the way it is coded.



When (more like IF) OSC (which is NOT us) freezes and releases the MS3 and people update a bunch of the 1000+ MODS/CONTRIBS then we will move to that code base ourselves... BUT until then MS2 code base requires it OFF and does not have ANY problems with that....


What it boils down to: (in no typical order)
A-Move hosts (quickest/cheapest/easiest and many other 'est)
B-Use MS3 DAILY (steap hill if you want to add any contribs/mods)
C-Use MS2 with register globals on (or OFF with patch above-but same proble as option B w/MS3)
D-Use some other software that COST more (and may have less options/flexablity)

Good Luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Register_Globals is Off!!!!!! titascuet osCMax v1.7 Discussion 3 07-26-2007 04:06 AM
looking for solution redz008 osCMax v1.7 Discussion 4 02-19-2005 03:32 PM
REGISTER_GLOBALS hussain osCommerce 2.2 Modification Help 8 01-29-2005 01:04 PM
register_globals on or off? safire osCommerce 2.2 Installation Help 1 08-27-2004 01:37 PM
HELP: Need a UK Seamless Payment Solution frijj2k osCommerce 2.2 Installation Help 0 07-26-2004 02:52 AM


All times are GMT -8. The time now is 05:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax