Kernel : Linux vmw02p.internet-indee.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64
Disable function : NONE
Safe mode : OFF
Host : firofichi.it | Server ip : 5.196.164.15 | Your ip : 18.191.239.107 | Time @ Server : 19 Oct 2024 05:23:27
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/magento/framework/Session/

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

File Path : /home/webmaster/firofichi/www/vendor/magento/framework/Session/SaveHandler.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Session; use Magento\Framework\Session\Config\ConfigInterface; use Magento\Framework\Exception\SessionException; /** * Magento session save handler */ class SaveHandler implements SaveHandlerInterface { /** * Session handler * * @var \SessionHandler */ protected $saveHandlerAdapter; /** * @var SaveHandlerFactory */ private $saveHandlerFactory; /** * @var ConfigInterface */ private $sessionConfig; /** * @var string */ private $defaultHandler; /** * @param SaveHandlerFactory $saveHandlerFactory * @param ConfigInterface $sessionConfig * @param string $default */ public function __construct( SaveHandlerFactory $saveHandlerFactory, ConfigInterface $sessionConfig, $default = self::DEFAULT_HANDLER ) { $this->saveHandlerFactory = $saveHandlerFactory; $this->sessionConfig = $sessionConfig; $this->defaultHandler = $default; } /** * Open Session - retrieve resources * * @param string $savePath * @param string $name * @return bool */ public function open($savePath, $name) { return $this->callSafely('open', $savePath, $name); } /** * Close Session - free resources * * @return bool */ public function close() { return $this->callSafely('close'); } /** * Read session data * * @param string $sessionId * @return string */ public function read($sessionId) { return $this->callSafely('read', $sessionId); } /** * Write Session - commit data to resource * * @param string $sessionId * @param string $data * @return bool */ public function write($sessionId, $data) { return $this->callSafely('write', $sessionId, $data); } /** * Destroy Session - remove data from resource for given session id * * @param string $sessionId * @return bool */ public function destroy($sessionId) { return $this->callSafely('destroy', $sessionId); } /** * Garbage Collection - remove old session data older than $maxLifetime (in seconds) * * @param int $maxLifetime * @return bool * @SuppressWarnings(PHPMD.ShortMethodName) */ public function gc($maxLifetime) { return $this->callSafely('gc', $maxLifetime); } /** * Call save handler adapter method. * * In case custom handler failed, default files handler is used. * * @param string $method * @param mixed $arguments * * @return mixed */ private function callSafely(string $method, ...$arguments) { try { if ($this->saveHandlerAdapter === null) { $saveMethod = $this->sessionConfig->getOption('session.save_handler') ?: $this->defaultHandler; $this->saveHandlerAdapter = $this->saveHandlerFactory->create($saveMethod); } return $this->saveHandlerAdapter->{$method}(...$arguments); } catch (SessionException $exception) { $this->saveHandlerAdapter = $this->saveHandlerFactory->create($this->defaultHandler); return $this->saveHandlerAdapter->{$method}(...$arguments); } } }