If this is your first visit, check our documentation. To post, register or login.

XSS Flaw Patch

Locked

Started by wilt on 8 Oct 2012, 12:48 PM · Views: 22,679

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
8 Oct 2012, 12:48 PM
#1
wilt avatar

wilt

Oji-san

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

Post #1 by wilt

Hi

We have been informed of a minor XSS flaw that exists within code for v1.5.0 & v1.51.

Mitigation for the flaw has been posted to our public Github Repository here.

You may need to right click this to download correctly. You should also only use the downloaded file if you are sure you have not changed the original file.

The mitigation is as follows:

  1. Edit {ADMIN FOLDER NAME}/includes/functions/general.php

  2. change line circa 126 within the zen_get_all_get_params function

Original ```php
if (($key != zen_session_name()) && ($key != 'error') && (!in_array($key, $exclude_array))) $get_url .= $key . '=' . $value . '&';


to 

```php
      if (($key != zen_session_name()) && ($key != 'error') && (!in_array($key, $exclude_array))) 
        $get_url .= zen_sanitize_string($key) . '=' . rawurlencode(stripslashes($value)) . '&';

Our thanks to

Stefan Schurtz via Secunia SVCRP.
for notifying us about the flaw.