Your project must restrict allowed classes when using unserialize()

More information: https://insight.symfony.com/what-we-analyse/php.use_unserialize_without_allowed_classes

  1. $redis = $redis_client;
  2. $raw = $redis->get($cache_key);
  3. // phpredis ne sérialise pas les tableaux : la valeur est stockée via serialize()
  4. if ($raw !== false) {
  5. $decoded = @unserialize($raw);
    unserialize() is called without the allowed_classes option, which can lead to PHP object injection attacks.
    Time to fix: about 15 minutes
    Read doc Open Issue Permalink Copy Prompt
    Last edited by clicshopping
  6. if (is_array($decoded)) {
  7. $cached_config = $decoded;
  8. }
  9. }