[security]KVE-2026-0690 설문조사 결과 페이지 Local File Inclusion 수정
skin_dir 파라미터에 디렉토리 트래버설 검증이 없어 임의 경로의 PHP 파일을 include할 수 있는 취약점을 clean_relative_paths()로 경로 조작 문자열 제거하여 수정 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
68a5b9c25a
commit
5875e8b86b
1 file changed
+1
@@ -3,6 +3,7 @@ include_once('./_common.php');
|
||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||
|
||||
$po_id = isset($_REQUEST['po_id']) ? (int) $_REQUEST['po_id'] : '';
|
||||
$skin_dir = isset($skin_dir) ? clean_relative_paths(strip_tags($skin_dir)) : '';
|
||||
|
||||
$po = sql_fetch(" select * from {$g5['poll_table']} where po_id = '{$po_id}' ");
|
||||
if (!$po['po_id'])
|
||||
|
||||
Reference in new issue
Block a user