[KVE-2026-0599]그누보드5 XSS 취약점 수정

This commit is contained in:
thisgun committed 2026-04-06 06:27:09 +00:00
1 parent b3fa6dc127
commit ad99ea7673
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);