[security]KVE-2026-0685 소셜 로그인 계정 연결 CSRF 방어

popup.php에서 mylink 진입 시 Referer 검증 및 세션 토큰 설정
functions.php에서 social_user_profile_replace() 호출 전 세션 토큰 검증

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thisgunandClaude Opus 4.6 committed 2026-04-16 03:23:50 +00:00
1 parent 0037f72cce
commit 758bb67b7b
2 files changed
+35

No files matched your search

+12
View File
@@ -549,6 +549,18 @@ function social_check_login_before($p_service=''){
if( $mylink ){
// CSRF 토큰 검증 (popup.php에서 설정한 세션 토큰 확인)
$mylink_token = get_session('ss_social_mylink_token');
set_session('ss_social_mylink_token', '');
if (!$mylink_token) {
if ($use_popup == 1 || !$use_popup) {
alert_close('올바른 방법으로 이용해 주십시오.');
} else {
alert('올바른 방법으로 이용해 주십시오.');
}
exit;
}
social_user_profile_replace($member['mb_id'], $provider_name, $user_profile);
if( is_object( $adapter ) ){ //연결한것은 인증 받은 즉시 로그아웃한다.