If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [not a bug] security issue with shared cart url/link

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

Started by spyderrobotics on 27 Jul 2023, 3:00 PM · Views: 1,233

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

spyderrobotics

New Zenner

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

Post #1 by spyderrobotics

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:
80
Plugin Contributions:
0

Post #2 by spyderrobotics

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,512
Plugin Contributions:
176

Post #3 by drbyte

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.