- панель работает на PHP 8.4 (оригинал под PHP 7.0): elFinder utf8_encode, apache_get_modules, warnings - капча выключена и управляется из админки (флаг captcha_enable + блок настроек) - закрыты две SQL-инъекции без авторизации (createAuthLog: пароль из POST и CF-Connecting-IP) - убрано хранение паролей в открытом виде в authlog, XSS в поле ref - установщики install-panel.sh и install-node.sh (оригинальный затирал sources.list репозиториями Debian 9) - современный Dockerfile (оригинальный на debian:stretch больше не собирается) - планировщик и автозапуск работают без systemd - брендинг REDL.IO, год 2026, ссылки на redl.io - документация на русском: ИЗМЕНЕНИЯ, БЕЗОПАСНОСТЬ, ИНСТРУКЦИЯ
42 lines
1018 B
PHP
42 lines
1018 B
PHP
<?php
|
|
/*
|
|
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
|
|
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
|
|
*/
|
|
class Request {
|
|
public $get = array();
|
|
public $post = array();
|
|
public $cookie = array();
|
|
public $files = array();
|
|
public $server = array();
|
|
|
|
public function __construct() {
|
|
$_GET = $this->clean($_GET);
|
|
$_POST = $this->clean($_POST);
|
|
$_REQUEST = $this->clean($_REQUEST);
|
|
$_COOKIE = $this->clean($_COOKIE);
|
|
$_FILES = $this->clean($_FILES);
|
|
$_SERVER = $this->clean($_SERVER);
|
|
|
|
$this->get = $_GET;
|
|
$this->post = $_POST;
|
|
$this->request = $_REQUEST;
|
|
$this->cookie = $_COOKIE;
|
|
$this->files = $_FILES;
|
|
$this->server = $_SERVER;
|
|
}
|
|
|
|
private function clean($data) {
|
|
if (is_array($data)) {
|
|
foreach ($data as $key => $value) {
|
|
unset($data[$key]);
|
|
$data[$this->clean($key)] = $this->clean($value);
|
|
}
|
|
} else {
|
|
$data = htmlspecialchars($data, ENT_COMPAT);
|
|
}
|
|
return $data;
|
|
}
|
|
}
|
|
?>
|