Zen Cart Logo
Forums / Bug Reports / [not a bug] security issue with shared cart url/link

[not a bug] security issue with shared cart url/link

Views: 1,211

Results 1 to 3 of 3
27 Jul 2023, 3:00 PM
#1
spyderrobotics avatar

spyderrobotics

New Zenner

Join Date:
Oct 2007
Posts:
73
Plugin Contributions:
0

[not a bug] security issue with shared cart url/link

Using v1.5.7c on my site and a customer was logged into their account and then was viewing a product.

They wanted to share that info with a friend and copied the URL and pasted into an email to the friend.

The friend pulled the link up on their computer and since the original account owner was still logged in on his computer the site let his friend see all his account info just as if he has logged in with email/password credentials.

I was able to recreate this. Is there something in the site that can be configured so that a even though another person has the zenid= in the link it doesn't consider them an account owner and log them in?

27 Jul 2023, 3:07 PM
#2
spyderrobotics avatar

spyderrobotics

New Zenner

Join Date:
Oct 2007
Posts:
73
Plugin Contributions:
0

Re: [not a bug] security issue with shared cart url/link

I found an old thread talking about this:

https://www.zen-cart.com/showthread.php?214273-Force-Cookie-Use

I am not sure if this is still current for 1.5 zen versions and if there is a better way to handle it. I would think sharing a link with the zenid still shouldn't allow access to the account configuration portion. Do people have any problems with forcing cookies at this point?

29 Jul 2023, 7:53 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [not a bug] security issue with shared cart url/link

You will need to force cookie use for the zenid to disappear from the URL for regular shoppers. If the customer blocks cookies in their browser (which can be done in various ways, including some uses of incognito/private-browsing mode), then the fallback will be that the zenid gets added to the URL for that customer.