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 : 23 Aug 2025 20:39:17
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/Module/Plugin/

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

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/Module/Plugin/DbStatusValidator.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Module\Plugin; use Magento\Framework\Cache\FrontendInterface as FrontendCacheInterface; use Magento\Framework\Module\DbVersionInfo; use Magento\Framework\App\FrontController; use Magento\Framework\App\RequestInterface; use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Phrase; /** * Validation of DB up to date state */ class DbStatusValidator { /** * @var FrontendCacheInterface */ private $cache; /** * @var DbVersionInfo */ private $dbVersionInfo; /** * @param FrontendCacheInterface $cache * @param DbVersionInfo $dbVersionInfo */ public function __construct(FrontendCacheInterface $cache, DbVersionInfo $dbVersionInfo) { $this->cache = $cache; $this->dbVersionInfo = $dbVersionInfo; } /** * Perform check if DB is up to date * * @param FrontController $subject * @param RequestInterface $request * @return void * @throws LocalizedException * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function beforeDispatch(FrontController $subject, RequestInterface $request) { if (!$this->cache->load('db_is_up_to_date')) { list($versionTooLowErrors, $versionTooHighErrors) = array_values($this->getGroupedDbVersionErrors()); if ($versionTooHighErrors) { $message = 'Please update your modules: ' . "Run \"composer install\" from the Magento root directory.\n" . "The following modules are outdated:\n%1"; throw new LocalizedException( new Phrase($message, [implode("\n", $this->formatVersionTooHighErrors($versionTooHighErrors))]) ); } elseif ($versionTooLowErrors) { $message = 'Please upgrade your database: ' . "Run \"bin/magento setup:upgrade\" from the Magento root directory.\n" . "The following modules are outdated:\n%1"; throw new LocalizedException( new Phrase($message, [implode("\n", $this->formatVersionTooLowErrors($versionTooLowErrors))]) ); } else { $this->cache->save('true', 'db_is_up_to_date'); } } } /** * Format each error in the error data from getOutOfDataDbErrors into a single message * * @param array $errorsData array of error data from getOutOfDateDbErrors * @return array Messages that can be used to log the error */ private function formatVersionTooLowErrors($errorsData) { $formattedErrors = []; foreach ($errorsData as $error) { $formattedErrors[] = $error[DbVersionInfo::KEY_MODULE] . ' ' . $error[DbVersionInfo::KEY_TYPE] . ': current version - ' . $error[DbVersionInfo::KEY_CURRENT] . ', required version - ' . $error[DbVersionInfo::KEY_REQUIRED]; } return $formattedErrors; } /** * Format each error in the error data from getOutOfDataDbErrors into a single message * * @param array $errorsData array of error data from getOutOfDateDbErrors * @return array Messages that can be used to log the error */ private function formatVersionTooHighErrors($errorsData) { $formattedErrors = []; foreach ($errorsData as $error) { $formattedErrors[] = $error[DbVersionInfo::KEY_MODULE] . ' ' . $error[DbVersionInfo::KEY_TYPE] . ': code version - ' . $error[DbVersionInfo::KEY_REQUIRED] . ', database version - ' . $error[DbVersionInfo::KEY_CURRENT]; } return $formattedErrors; } /** * Return DB version errors grouped by 'version_too_low' and 'version_too_high' * * @return mixed */ private function getGroupedDbVersionErrors() { $allDbVersionErrors = $this->dbVersionInfo->getDbVersionErrors(); return array_reduce( (array)$allDbVersionErrors, function ($carry, $item) { if ($item[DbVersionInfo::KEY_CURRENT] === 'none' || version_compare($item[DbVersionInfo::KEY_CURRENT], $item[DbVersionInfo::KEY_REQUIRED], '<') ) { $carry['version_too_low'][] = $item; } else { $carry['version_too_high'][] = $item; } return $carry; }, [ 'version_too_low' => [], 'version_too_high' => [], ] ); } }