Zen Cart Logo
Forums / General Questions / Session Issue - Customer Logs in and sees another customers account

Session Issue - Customer Logs in and sees another customers account

Locked

Views: 2,074

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 Jan 2008, 12:33 AM
#1
czemel avatar

czemel

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

Session Issue - Customer Logs in and sees another customers account

I'm quite aware of all the threads discussing sessions and fixes for session crossing. Here's the issue:

A while back I had a customer submit an issue where they were being logged out when they tried to checkout and they were not able to complete an order. So I switched Recreate Sessions to false and it resolved the problem and since then I did not have an issue in regards to that.

Yesterday, we installed an SSL certificate on the domain (this may or may not be important).

In any case, today, when one customer logged in, the account information of another user was shown (they placed an order thrugh Paypal IPN where the Paypal IP showed the customers correct info, but the Order generated in zencart was under a different users account who never placed an order as of yet... they notified us of this).
While I may be tempted to set recreate sessions to true, I would risk having the issue as I had a while back. So this is a double edged sword as it would seem. So, I'm begging for any guidance as to how to resolve this issue. Below are our configuration settings:

Cookie Domain True
Force Cookie Use False
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session False
IP to Host Conversion Status true

I read something about "AOL and other big ISPs force all web traffic through a load balanced set of proxy servers, causing users to "change IPs" mid-session, or something like that.. it also seems to happen if for some reason multiple users come from the same IP (NAT, or multiple browsers, as you suggest)."

We are using version 1.3.7.1.
Any help would be greatly appreciated.

PS: All links to the site are advertised without any session id info in the url.

Thanks.

18 Jan 2008, 1:55 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Session Issue - Customer Logs in and sees another customers account

set
Recreate Session False to true

sounds like you have a url posted out there somewhere with a session ID ( zenid ) attached to it

18 Jan 2008, 4:54 AM
#3
czemel avatar

czemel

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

Re: Session Issue - Customer Logs in and sees another customers account

Hi,

Thanks for the reply.

set Recreate Session False to true
If I do this then I am concerned I will get the original issue (that was resolved when switching Recreate Sessions to false) where some people were getting logged out of their cart during the checkout process.

sounds like you have a url posted out there somewhere with a session ID ( >zenid ) attached to it
Lets assume you were correct. Here's a question for you. If User A posts a link on the internet with the session ID. If User C then clicks on that link can s/he then possibly see account info for User B or just User A. If its just user A, then I am 100% positive this didn't happen. If User C could see User B info (or any other user for that matter), then it would be impossible to know for sure and I would seriously be concerned about the security in general.

Any input would be great...

Thanks.

18 Jan 2008, 5:41 AM
#4
czemel avatar

czemel

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

Re: Session Issue - Customer Logs in and sees another customers account

czemel:

Hi,

Thanks for the reply.

set Recreate Session False to true
If I do this then I am concerned I will get the original issue (that was resolved when switching Recreate Sessions to false) where some people were getting logged out of their cart during the checkout process.

sounds like you have a url posted out there somewhere with a session ID ( >zenid ) attached to it
Lets assume you were correct. Here's a question for you. If User A posts a link on the internet with the session ID. If User C then clicks on that link can s/he then possibly see account info for User B or just User A. If its just user A, then I am 100% positive this didn't happen. If User C could see User B info (or any other user for that matter), then it would be impossible to know for sure and I would seriously be concerned about the security in general.

Any input would be great...

Thanks.

I did some further research and I even found the session ID (I found the customers payment through the Paypal IPN debug logs which provided the zencart session ID). Then I searched through referral logs and the occurrence of this session ID occurred many times for different visitors (IP addresses). And non of the referal url were external websites.

Whats interesting is this session id was used many times over the past 15 hours. I also did see other ids show up, but this one showed up a lot.

18 Jan 2008, 7:14 PM
#5
czemel avatar

czemel

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

Re: Session Issue - Customer Logs in and sees another customers account

I found the source of the issue. It turns out two people clicked on an add that had the same session id. So they were forced to the same session which explains everything. I will speak to my client to ensure she does not use the session id when doing any links or advertising.

Thanks for all the help.