Forums / Zen Cart Release Announcements / Trustwave Security report [Patch Included] TWSL2016-006

Trustwave Security report [Patch Included] TWSL2016-006

Locked

Views: 32,668

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
17 Mar 2016, 5:43 PM
#1
wilt avatar

wilt

Oji-san

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

Trustwave Security report [Patch Included] TWSL2016-006

[Attachment no longer available][Attachment no longer available]Robert Foggia of Trustwave notified us of possible multiple security vulnerabilities in Zen Cart Admin

Trustwave announcement: https://www.trustwave.com/Resources/SpiderLabs-Blog/TWSL2016-006

The majority of these vulnerabilities were XSS and/or reflected XSS vulnerabilities, and are addressed in the details below. The rest were announced earlier, with patching instructions, here: https://www.zen-cart.com/showthread.php?218914-Security-Patches-for-v1-5-4-November-2015

Some background here, on the XSS concerns:

There are a lot of places in Admin where we allow the input of html/script tags.
e.g. Product descriptions/Product Names/Email Sending as well as some configuration values.

While allowing these does mean there could be XSS vulnerabilities, this is further mitigated by the use of XSRF tokens in admin ... and the requirement that one must be logged into the admin for this to be an issue at all.

Over a long period of discussion with Trustwave we did decide to implement a more global process of sanitizing GET/POST parameters in Admin.

Those changes can be seen in the admin/includes/init_incudes/init_sanitize.php and admin/includes/classes/AdminRequestSanitizer.php files of the new v155 release.
There is also documentation about the new sanitzation at http://docs.zen-cart.com/Developer_Documentation/v1.5.5/code_docs/admin_sanitization

These files can also be used to patch v1.5.0/v1.5.1/v1.5.2/v1.5.3 and v1.5.4

i.e for the attached files see the following post below,

24 May 2016, 9:47 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Trustwave Security report [Patch Included] TWSL2016-006

NOTE: The files attached in the above announcement had some incompatibility issues with a couple popular plugins, so a number of improvements have been made, as indicated here.

In your Admin if you're unexpectedly getting symbols like & converted into & then you probably need to apply the following updates.

These changes are applicable to v1.5.0-thru-v1.5.5a (you can right-click and save-as for each of these files):
a) /admin/includes/classes/AdminRequestSanitizer.php
b) /admin/includes/init_includes/init_sanitize.php
c) /admin/includes/auto_loaders/config.adminSanitize.php

.
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.