From ad99ea7673c656ab82fb7b5ba35ce456c710dfdb Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 6 Apr 2026 06:27:09 +0000 Subject: [PATCH] =?UTF-8?q?[KVE-2026-0599]=EA=B7=B8=EB=88=84=EB=B3=B4?= =?UTF-8?q?=EB=93=9C5=20XSS=20=EC=B7=A8=EC=95=BD=EC=A0=90=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_update.php | 2 +- install/install_db.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bbs/write_update.php b/bbs/write_update.php index 91cbcaddf..7261cc09b 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -575,7 +575,7 @@ if(isset($_FILES['bf_file']['name']) && is_array($_FILES['bf_file']['name'])) { $upload[$i]['filesize'] = $filesize; // 아래의 문자열이 들어간 파일은 -x 를 붙여서 웹경로를 알더라도 실행을 하지 못하도록 함 - $filename = preg_replace("/\.(php|pht|phtm|htm|cgi|pl|exe|jsp|asp|inc|phar)/i", "$0-x", $filename); + $filename = preg_replace("/\.(php|pht|phtm|htm|cgi|pl|exe|jsp|asp|inc|phar|svg|svgz)/i", "$0-x", $filename); shuffle($chars_array); $shuffle = implode('', $chars_array); diff --git a/install/install_db.php b/install/install_db.php index 7a143b5a6..d2c2fce98 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -659,7 +659,7 @@ fclose($f); // data 디렉토리 및 하위 디렉토리에서는 .htaccess .htpasswd .php .phtml .html .htm .inc .cgi .pl .phar 파일을 실행할수 없게함. $f = fopen($data_path.'/.htaccess', 'w'); $str = << + Order allow,deny Deny from all