Get the book

Go Back   Zen Cart Support > News and Announcements > Zen Cart Release Announcements

Zen Cart Release Announcements Watch this forum for new releases and other important announcements.
Click here to subscribe to these announcements.

Closed Thread
 
Thread Tools Display Modes
Old 30th November 2009, 10:14 PM   #1
DrByte
Sensei
 
DrByte's Avatar
 
Join Date: Jan 2004
Location: Ontario, Canada
Posts: 44,116
Default XSS protection patch - Nov 30 2009

While XSS or CSRF attacks are difficult to trigger and may not manifest very often, it is still important to protect against the ill effects which could be caused by them.

As such, the following XSS patches are advised in order to protect yourself from a recently-reported vulnerability:

The following edits should be made to the respective files.
THESE UPDATES APPLY TO ALL VERSIONS OF ZEN CART UP TO (& including)v1.3.8a (although line numbers may vary)

NOTE: These updates should be made EVEN if you've renamed your admin folder. (Merely renaming your admin folder will NOT protect you from XSS issues.)

/admin/index.php
Add the new lines shown, around approx line 135:
Code:
  while (!$customers->EOF) {
	    $customers->fields['customers_firstname'] = zen_output_string_protected($customers->fields['customers_firstname']);
	    $customers->fields['customers_lastname'] = zen_output_string_protected($customers->fields['customers_lastname']);
    echo '              <div class="row"><span class="left"><a href="' . zen_href_link(FILENAME_CUSTOMERS ....(code snipped here for brevity)........
/admin/customers.php
Add the new line shown, around approx line 1173:
Code:
    default:
      if (isset($cInfo) && is_object($cInfo)) {
        if (isset($_GET['search'])) $_GET['search'] = zen_output_string_protected($_GET['search']);
        $customers_orders = $db->Execute("select o.orders_id, o.date_purchased, o.order_total, o.currency, o.currency_value,
/admin/sqlpatch.php (ONLY relevant for v1.3.5 to (including) v1.3.8a)
Add the "(bool)" as shown here on line 808:
Code:
<?php if (isset($_GET['nogrants'])) echo '<input type="hidden" id="nogrants" name="nogrants" value="'.(bool)$_GET['nogrants'].'" />'; ?>

Thanks to Pedro Joaquín at webvuln for the alert.
__________________
Zen Cart - putting the dream of business ownership within reach of anyone!

Last edited by Kim; 1st December 2009 at 04:46 PM.
DrByte is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get of New PATCH Available: v1.3.8a - patch: [1] :: Important Security Patch hcd888 General Questions 15 2nd October 2009 11:45 AM
Problems after installing security patch 06 19 2009 maria82g General Questions 24 1st July 2009 04:59 AM
June 2009 Admin Security Patch vs some Addons/Contributions wilt Zen Cart Release Announcements 0 24th June 2009 02:28 PM


All times are GMT +1. The time now is 05:54 AM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009, 2010 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads