[security]KVE-2026-0711 PG 리턴 처리 POST 키 이름 Reflected XSS 수정
XenoPostToForm::makeInputArray() 에서 POST 값·배열 인덱스는 이스케이프 되지만 최상위 POST 키 이름이 name 속성에 그대로 삽입되던 문제를 수정. 재귀 진입 시점에 htmlspecialchars() 로 키를 이스케이프하여 모든 깊이에서 안전하도록 함. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
efaefbbd0e
commit
7119b4f612
+1
-1
@@ -295,7 +295,7 @@ if( ! class_exists('XenoPostToForm') ){
|
||||
public static function makeInputArray($posts) {
|
||||
$res = array();
|
||||
foreach($posts as $k => $v) {
|
||||
$res[] = self::makeInputArray_($k, $v);
|
||||
$res[] = self::makeInputArray_(htmlspecialchars($k), $v);
|
||||
}
|
||||
return implode('', $res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user