Plugin Directory

Changeset 3170922


Ignore:
Timestamp:
10/17/2024 05:42:33 PM (14 months ago)
Author:
LiteSpeedTech
Message:

Release v6.5.2

Location:
litespeed-cache
Files:
337 added
5 edited

Legend:

Unmodified
Added
Removed
  • litespeed-cache/trunk/litespeed-cache.php

    r3157755 r3170922  
    55 * Plugin URI:        https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
    66 * Description:       High-performance page caching and site optimization from LiteSpeed
    7  * Version:           6.5.1
     7 * Version:           6.5.2
    88 * Author:            LiteSpeed Technologies
    99 * Author URI:        https://www.litespeedtech.com
     
    3535}
    3636
    37 !defined('LSCWP_V') && define('LSCWP_V', '6.5.1');
     37!defined('LSCWP_V') && define('LSCWP_V', '6.5.2');
    3838
    3939!defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR);
  • litespeed-cache/trunk/readme.txt

    r3166083 r3170922  
    44Requires at least: 4.9
    55Tested up to: 6.6.1
    6 Stable tag: 6.5.1
     6Stable tag: 6.5.2
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl.html
     
    255255== Changelog ==
    256256
     257= 6.5.2 - Oct 17 2024 =
     258* **Crawler** Removed barely used Role Simulator from Crawler, to prevent potential security issues.
     259* **Misc** Removed `mt_srand` function in random hash generation to slightly improve the hash result.
     260
    257261= 6.5.1 - Sep 25 2024 =
    258262* **Security** This release includes two security updates to enhance the post validation of the editor (CVE-2024-47373), and to secure the GUI queue display from malicious vary input (CVE-2024-47374).
  • litespeed-cache/trunk/src/crawler.cls.php

    r3135111 r3170922  
    356356         * @since 1.9.1
    357357         */
    358         if (!empty($current_crawler['uid'])) {
    359             // Get role simulation vary name
    360             $vary_name = $this->cls('Vary')->get_vary_name();
    361             $vary_val = $this->cls('Vary')->finalize_default_vary($current_crawler['uid']);
    362             $this->_crawler_conf['cookies'][$vary_name] = $vary_val;
    363             $this->_crawler_conf['cookies']['litespeed_hash'] = Router::cls()->get_hash($current_crawler['uid']);
    364         }
     358        // if (!empty($current_crawler['uid'])) {
     359        // // Get role simulation vary name
     360        // $vary_name = $this->cls('Vary')->get_vary_name();
     361        // $vary_val = $this->cls('Vary')->finalize_default_vary($current_crawler['uid']);
     362        // $this->_crawler_conf['cookies'][$vary_name] = $vary_val;
     363        // $this->_crawler_conf['cookies']['litespeed_hash'] = Router::cls()->get_hash($current_crawler['uid']);
     364        // }
    365365
    366366        /**
     
    10961096        // Get roles set
    10971097        // List all roles
    1098         foreach ($this->conf(Base::O_CRAWLER_ROLES) as $v) {
    1099             $role_title = '';
    1100             $udata = get_userdata($v);
    1101             if (isset($udata->roles) && is_array($udata->roles)) {
    1102                 $tmp = array_values($udata->roles);
    1103                 $role_title = array_shift($tmp);
    1104             }
    1105             if (!$role_title) {
    1106                 continue;
    1107             }
    1108 
    1109             $crawler_factors['uid'][$v] = ucfirst($role_title);
    1110         }
     1098        // foreach ($this->conf(Base::O_CRAWLER_ROLES) as $v) {
     1099        // $role_title = '';
     1100        // $udata = get_userdata($v);
     1101        // if (isset($udata->roles) && is_array($udata->roles)) {
     1102        //      $tmp = array_values($udata->roles);
     1103        //      $role_title = array_shift($tmp);
     1104        // }
     1105        // if (!$role_title) {
     1106        //      continue;
     1107        // }
     1108
     1109        // $crawler_factors['uid'][$v] = ucfirst($role_title);
     1110        // }
    11111111
    11121112        // Cookie crawler
  • litespeed-cache/trunk/src/router.cls.php

    r3146657 r3170922  
    272272        }
    273273        // Hash validation
    274         if (!empty($_COOKIE['litespeed_hash'])) {
    275             $hash_data = self::get_option(self::ITEM_HASH, array());
    276             if ($hash_data && is_array($hash_data) && !empty($hash_data['hash']) && !empty($hash_data['ts']) && !empty($hash_data['uid'])) {
    277                 if (time() - $hash_data['ts'] < $this->conf(Base::O_CRAWLER_RUN_DURATION) && $_COOKIE['litespeed_hash'] == $hash_data['hash']) {
    278                     if (empty($hash_data['ip'])) {
    279                         $hash_data['ip'] = self::get_ip();
    280                         self::update_option(self::ITEM_HASH, $hash_data);
    281                     } else {
    282                         $server_ips = apply_filters('litespeed_server_ips', array($hash_data['ip']));
    283                         if (!self::ip_access($server_ips)) {
    284                             self::debug('WARNING: role simulator ip check failed [db ip] ' . $hash_data['ip'], $server_ips);
    285                             return;
    286                         }
    287                     }
    288                     wp_set_current_user($hash_data['uid']);
    289                     return;
    290                 }
    291             }
    292         }
     274        // if (!empty($_COOKIE['litespeed_hash'])) {
     275        // $hash_data = self::get_option(self::ITEM_HASH, array());
     276        // if ($hash_data && is_array($hash_data) && !empty($hash_data['hash']) && !empty($hash_data['ts']) && !empty($hash_data['uid'])) {
     277        //      if (time() - $hash_data['ts'] < $this->conf(Base::O_CRAWLER_RUN_DURATION) && $_COOKIE['litespeed_hash'] == $hash_data['hash']) {
     278        //          if (empty($hash_data['ip'])) {
     279        //              $hash_data['ip'] = self::get_ip();
     280        //              self::update_option(self::ITEM_HASH, $hash_data);
     281        //          } else {
     282        //              $server_ips = apply_filters('litespeed_server_ips', array($hash_data['ip']));
     283        //              if (!self::ip_access($server_ips)) {
     284        //                  self::debug('WARNING: role simulator ip check failed [db ip] ' . $hash_data['ip'], $server_ips);
     285        //                  return;
     286        //              }
     287        //          }
     288        //          wp_set_current_user($hash_data['uid']);
     289        //          return;
     290        //      }
     291        // }
     292        // }
    293293
    294294        self::debug('WARNING: role simulator hash not match');
  • litespeed-cache/trunk/src/str.cls.php

    r3009052 r3170922  
    11<?php
     2
    23/**
    34 * LiteSpeed String Operator Library Class
     
    56 * @since 1.3
    67 */
     8
    79namespace LiteSpeed;
    810
     
    2224    public static function rrand($len, $type = 7)
    2325    {
    24         mt_srand((int) ((float) microtime() * 1000000));
     26        // mt_srand((int) ((float) microtime() * 1000000));
    2527
    2628        switch ($type) {
Note: See TracChangeset for help on using the changeset viewer.