[security]KVE-2026-0689 SNS 공유 스킨 Reflected XSS 수정
$_SERVER['REQUEST_URI']를 JavaScript 문자열에 이스케이프 없이 출력하여 URL을 통한 Reflected XSS가 가능한 취약점을 json_encode()로 안전하게 이스케이프 처리 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
2dff49914b
commit
68a5b9c25a
@@ -38,7 +38,7 @@ $bo_v_sns_class = $config['cf_kakao_js_apikey'] ? 'show_kakao' : '';
|
||||
}
|
||||
}
|
||||
|
||||
var webUrl = location.protocol+"<?php echo '//'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?>",
|
||||
var webUrl = location.protocol+<?php echo json_encode('//'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>,
|
||||
imageUrl = $("#bo_v_img").find("img").attr("src") || $(".view_image").find("img").attr("src") || '';
|
||||
|
||||
Kakao.Link.sendDefault({
|
||||
|
||||
Reference in New Issue
Block a user