Zen Cart Logo
Forums / All Other Contributions/Addons / Security Error- Customers can't log back in! -- IntegratedCOWOA addon

Security Error- Customers can't log back in! -- IntegratedCOWOA addon

Locked

Views: 1,325

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
11 Jan 2010, 3:14 PM
#1
stars62 avatar

stars62

New Zenner

Join Date:
Aug 2009
Posts:
22
Plugin Contributions:
0

Security Error- Customers can't log back in! -- IntegratedCOWOA addon

Not sure if this has anything to do with the IntegratedCOWOA(1.3.8) Add-On that I installed on my zen cart too. I read and followed the instructions on the readme file for the security_patch_v138. I changed the admin folder successfully and I can get into Admin Panel, but it still suggests the security update. Version info still says v1.3.7

Please help! I have a customer who can't log back in because of the security error.

Thank you!!!

12 Jan 2010, 4:26 PM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

Applying security patches has nothing to do with customers not being able to login successfully - unless patch files were inserted into the wrong place.

Vger

12 Jan 2010, 7:29 PM
#3
stars62 avatar

stars62

New Zenner

Join Date:
Aug 2009
Posts:
22
Plugin Contributions:
0

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

customers aren't able to login before and after the patch update. i thought this was the solution for the security error that they're getting.

13 Jan 2010, 4:14 PM
#4
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

The patch is to address security vulnerabilities in the admin code, and as Vger pointed out should have no affect on toy store/catalog.

Looking at your site, the reason you are always getting a Security Error when someone tries to login, is that the Security Token session value is never being set.

Hence in the source for the login page I see,

<input type="hidden" name="securityToken" />

Note, there is no 'value' associated with this.

I have to assume that this has been caused by the COWOA contribution, or some other changes you have made to core code.

I would first look at the contribution thread for COWOA to see if any details are posted there.

I would specifically review any changes made to the login page code, the includes/functions/sessions.php code, and the includes/functions/html_output.php code.

14 Jan 2010, 8:12 PM
#5
stars62 avatar

stars62

New Zenner

Join Date:
Aug 2009
Posts:
22
Plugin Contributions:
0

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

Ok so I found it in the source, this line was manually added as per the instructions in the readme.html file that came with the security patch. What's the value that I need to enter?

"
Open the file in an editor and find the function "zen_draw_form"

The last line of this function is

return $form;
Just before that line add another line as below

$form .= '<input type="hidden" name="securityToken" value="' . $_SESSION['securityToken'] . '" />';
You can then save the file.
"

14 Jan 2010, 11:09 PM
#6
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

That line should only be added to
admin/includes/functions/html_output.php

If this is what you have done, then that is not the source of the error.

However it should not be added to the catalog
includes/functions/html_ouput.php

15 Jan 2010, 3:19 PM
#7
stars62 avatar

stars62

New Zenner

Join Date:
Aug 2009
Posts:
22
Plugin Contributions:
0

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

I only altered the admin section, not the includes/functions/html_ouput.php

What could be the security error then?

Your help is very much appreciated!

15 Jan 2010, 7:49 PM
#8
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

Hi,

The first place you need to check is your

includes/functions/sessions.php file.

Can you confirm that at around line 109 you have

    if (!isset($_SESSION['securityToken'])) {
      $_SESSION['securityToken'] = md5(uniqid(rand(), true));
    }
18 Jan 2010, 5:52 PM
#9
stars62 avatar

stars62

New Zenner

Join Date:
Aug 2009
Posts:
22
Plugin Contributions:
0

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

No I don't have that php code in sessions.php file, I did a search for it. Should I add it?

18 Jan 2010, 9:38 PM
#10
stars62 avatar

stars62

New Zenner

Join Date:
Aug 2009
Posts:
22
Plugin Contributions:
0

Re: Security Error- Customers can't log back in! -- IntegratedCOWOA addon

I think something went wrong when I renamed the admin folders. I also changed the configure.php file. Was there something else that I'm missing?