Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 24 Aug 2025 03:08:14
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/DB/DataConverter/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/DB/DataConverter/SerializedToJson.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\DB\DataConverter; use Magento\Framework\Serialize\Serializer\Json; use Magento\Framework\Serialize\Serializer\Serialize; /** * Convert from serialized to JSON format */ class SerializedToJson implements DataConverterInterface { /** * @var Serialize */ private $serialize; /** * @var Json */ private $json; /** * Constructor * * @param Serialize $serialize * @param Json $json */ public function __construct( Serialize $serialize, Json $json ) { $this->serialize = $serialize; $this->json = $json; } /** * Convert from serialized to JSON format * * @param string $value * @return string * @throws DataConversionException */ public function convert($value) { if ($this->isValidJsonValue($value)) { return $value; } return $this->encodeJson($this->unserializeValue($value)); } /** * Is a valid JSON serialized value * * @param string $value * @return bool */ protected function isValidJsonValue($value) { if (in_array($value, ['null', 'false', '0', '""', '[]']) || (json_decode($value) !== null && json_last_error() === JSON_ERROR_NONE) ) { return true; } //JSON last error reset json_encode([]); return false; } /** * Unserialize value * * @param string $value * @return mixed * @throws DataConversionException */ protected function unserializeValue($value) { try { set_error_handler(function ($errorNumber, $errorString) { throw new DataConversionException($errorString, $errorNumber); }); $value = $this->serialize->unserialize($value); } catch (\Throwable $throwable) { throw new DataConversionException($throwable->getMessage()); } finally { restore_error_handler(); } return $value; } /** * Encode value with json encoder. * * In PHP version < 7.1.0 serialize() uses PG(serialize_precision) which set to 17 be default. * Since json_encode() uses EG(precision) which set to 14 be default, json_encode() removes lower digits of * fraction parts and destroys original value even if PHP's float could hold more precise float value. * To prevent this issue EG(precision) is set to 17 to be equal with PG(serialize_precision) during * data converting from serialized format to JSON. * * In PHP version >= 7.1.0 serialize() and json_encode() use PG(serialize_precision) which set to -1 be default. * Setting -1 uses better algorithm for rounding float numbers. * But for data consistency during converting process PG(serialize_precision) is set to 17. * * @param string $value * @return string * @throws DataConversionException */ protected function encodeJson($value) { $storedPrecision = ini_get('precision'); $storedSerializePrecision = ini_get('serialize_precision'); if (PHP_VERSION_ID < 70100) { // In PHP version < 7.1.0 json_encode() uses EG(precision). ini_set('precision', 17); } else { // In PHP version >= 7.1.0 json_encode() uses PG(serialize_precision). ini_set('serialize_precision', 17); } $value = $this->json->serialize($value); ini_set('precision', $storedPrecision); ini_set('serialize_precision', $storedSerializePrecision); if (json_last_error()) { throw new DataConversionException(json_last_error_msg()); } return $value; } }