Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Security bulletin 2008-12-18

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #11  
Old 12-19-2008, 06:10 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Security bulletin 2008-12-18

Is this patch going to have any surprise effects like the last two have? I am referring to the problem with user names and cookies, although this patch could have some other undesired effect. Anyway, is there something that is not said that we should be aware of about how this will affect our store?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #12  
Old 12-19-2008, 07:38 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Security bulletin 2008-12-18

What I do is put the new files in one directory, download the same files in another directory, then use a program called "Beyond Compare" to apply the changes to my files. This patch was one of the easier ones.
Reply With Quote
  #13  
Old 12-19-2008, 07:44 AM
  Ene's Avatar 
Ene Ene is offline
 

X-Cart team
  
Join Date: Aug 2004
Posts: 907
 

Default Re: Security bulletin 2008-12-18

Quote:
Is this patch going to have any surprise effects like the last two have? I am referring to the problem with user names and cookies, although this patch could have some other undesired effect. Anyway, is there something that is not said that we should be aware of about how this will affect our store?

This patch adds a more stricy check of the sent variables (POST,GET,COOKIES, etc).

It doesn't have any 'hidden' impacts.
__________________
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid: http://www.ecwid.com/ (since Sept 2009)

ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager - X-Cart hosting
ex-X-Cart Technical Support Engineer


Note: For the official guaranteed tech support services please turn to the Customers HelpDesk.
Reply With Quote
  #14  
Old 12-19-2008, 09:43 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: Security bulletin 2008-12-18

Hi All,

I applied the security patch yesterday using Jon's method above to view the file changes. None of the affected files had been modified so it was an easy overwrite for me.

No problems to report or any user difficulties. New customers and orders processing just fine.

Merry Christmas To All !

Paul

p.s. Santa say's to always listen to Jon
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #15  
Old 12-19-2008, 02:10 PM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Security bulletin 2008-12-18

Eugene,
I have checked over the new files against my existing files and the only line of code I am questioning is in xcart/include/register.php

Existing Code:
Code:
if ((strcmp($uname_tmp, $uname) !=0) || (eregi("[^a-z0-9_-.@]",$uname) && $newbie == "Y" && $anonymous != "Y"))
New Code:
Code:
if ((strcmp($uname_tmp, $uname) != 0) || (!preg_match("/^[a-z0-9_-]+$/s", $uname) && $uname != ""))

Could you please advise if it is ok to leave the existing code? If I replace that line of code I am concerned that existing customers will not be able to login using upper case letters or @ in their login name/password fields.


Thanks
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #16  
Old 12-19-2008, 02:15 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Security bulletin 2008-12-18

Try:

Code:
if ((strcmp($uname_tmp, $uname) != 0) || (!preg_match("/^[a-zA-Z0-9_-]+$/s", $uname) && $uname != ""))
Reply With Quote
  #17  
Old 12-19-2008, 02:23 PM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Security bulletin 2008-12-18

Quote:
Originally Posted by Jon
Try:

Code:
if ((strcmp($uname_tmp, $uname) != 0) || (!preg_match("/^[a-zA-Z0-9_-]+$/s", $uname) && $uname != ""))

Thanks Jon
Will users be able to have an @ in there username or password with the code you posted?
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #18  
Old 12-19-2008, 02:54 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Security bulletin 2008-12-18

That was for upper case. To allow @ also try:

Code:
if ((strcmp($uname_tmp, $uname) != 0) || (!preg_match("/^[a-zA-Z0-9_-@]+$/s", $uname) && $uname != ""))
Reply With Quote
  #19  
Old 12-19-2008, 02:57 PM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Security bulletin 2008-12-18

Quote:
Originally Posted by Jon
That was for upper case. To allow @ also try:

Code:
if ((strcmp($uname_tmp, $uname) != 0) || (!preg_match("/^[a-zA-Z0-9_-@]+$/s", $uname) && $uname != ""))

Thanks a lot Jon, I'll try that out.
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #20  
Old 12-19-2008, 03:23 PM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Security bulletin 2008-12-18

Quote:
Originally Posted by Jon
That was for upper case. To allow @ also try:

Code:
if ((strcmp($uname_tmp, $uname) != 0) || (!preg_match("/^[a-zA-Z0-9_-@]+$/s", $uname) && $uname != ""))

Jon, that did not work. When I tried to create an account with
Username: Test@
Password: Test@61

I received the error message that only a-z and 0-9 could be used. I put back,
Code:
if ((strcmp($uname_tmp, $uname) !=0) || (eregi("[^a-z0-9_-.@]",$uname) && $newbie == "Y" && $anonymous != "Y"))
and was able to register with the same username/password combo.
I have the rest of the patch installed and if I leave that original line of code in everything seems to be working fine. I wonder if it would be safe to leave like that?
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
Reply
   X-Cart forums > News and Announcements



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:06 PM.

   

 
X-Cart forums © 2001-2020