fix possible DoS

This commit is contained in:
Uwe Steinmann 2022-03-26 18:48:04 +01:00
parent 8d3077cd34
commit d68c922152
3 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@
- output splash message when removing, editing, adding a category or keyword
- extensions cannot be disabled/enabled if configuration file is not writeable
- prevent cross site scripting in views/bootstrap/class.DefaultKeywords.php
- fix possible DoS in op/op.RemoveLog.php
--------------------------------------------------------------------------------
Changes in version 5.1.24

View File

@ -41,6 +41,7 @@ if (!isset($_POST["lognames"]) || !is_array($_POST["lognames"])) {
$lognames = $_POST["lognames"];
foreach($lognames as $file) {
$file = basename($file, '.log').'.log';
if(!file_exists($settings->_contentDir.'log/'.$file)) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}

View File

@ -49,6 +49,7 @@ if(!is_array($_GET["logname"]))
else
$lognames = $_GET["logname"];
foreach($lognames as $file) {
$file = basename($file, '.log').'.log';
if(!file_exists($settings->_contentDir.'log/'.$file)) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}