security: KVE-2026-2269 KVE-2026-2331 보안 메일 링크를 고정 도메인으로 제한

검증된 G5_DOMAIN만 인증 및 수신 거부 링크에 사용하고 요청 Host로 대체하지 않는다. 설정 오류 시 인증값과 관련 회원정보를 변경하기 전에 발급을 중단한다.

검증: Host 변조 및 고정 주소 미설정·오류의 격리 메일 검증, PHP 문법 검사 통과.
This commit is contained in:
whitedot committed 2026-09-09 07:58:16 +00:00
1 parent 639b788ad1
commit fcc749bde3
10 files changed
+90 -19

No files matched your search

+3 -1
View File
@@ -86,10 +86,12 @@ $data = array(
'mb_name' => $mb_name,
);
$security_mail_url = g5_security_mail_base_url();
$mb_email_certify = G5_TIME_YMDHIS;
//메일인증을 사용한다면
if( defined('G5_SOCIAL_CERTIFY_MAIL') && G5_SOCIAL_CERTIFY_MAIL && $config['cf_use_email_certify'] ){
$security_mail_url = g5_require_security_mail_url();
$mb_email_certify = '';
}
@@ -277,7 +279,7 @@ if($result) {
sql_query(" update {$g5['member_table']} set mb_email_certify2 = '$mb_md5' where mb_id = '$mb_id' ");
$certify_href = G5_BBS_URL.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5;
$certify_href = $security_mail_url.'/'.G5_BBS_DIR.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5;
ob_start();
include_once (G5_BBS_PATH.'/register_form_update_mail3.php');