From 3de722d3df9ef3945dd78a9121a18e7f24f707a7 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 27 Apr 2026 06:41:56 +0000 Subject: [PATCH] =?UTF-8?q?[security]KVE-2026-0787=20alert()=20JavaScript?= =?UTF-8?q?=20=EC=9D=B4=EC=8A=A4=EC=BC=80=EC=9D=B4=ED=94=84=20=EB=88=84?= =?UTF-8?q?=EB=9D=BD=20Stored=20XSS=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bbs/alert.php, bbs/alert_close.php 가 alert("$msg") 형태로 메시지를 JS 문자열 컨텍스트에 직접 삽입하던 부분을 수정. lib/common.lib.php 에 PHP 5.2 호환 폴백을 갖춘 get_js_safe_string() 헬퍼를 추가하고, 호출부에는 function_exists 가드를 걸어 부분 패치 환경에서도 안전하게 폴백되도록 함. Co-Authored-By: Claude Opus 4.7 (1M context) --- bbs/alert.php | 2 +- bbs/alert_close.php | 2 +- lib/common.lib.php | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/bbs/alert.php b/bbs/alert.php index 26c3700a5..2d060ca12 100644 --- a/bbs/alert.php +++ b/bbs/alert.php @@ -48,7 +48,7 @@ if($error) { ?>