From 2dff49914bdcf54d54f0e76aa9dfb9d195b35ba1 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 16 Apr 2026 03:35:29 +0000 Subject: [PATCH] =?UTF-8?q?[security]KVE-2026-0710=20=EA=B7=B8=EB=88=84?= =?UTF-8?q?=EB=B3=B4=EB=93=9C5=20SQL=20Injection=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/member_form_update.php | 8 ++++---- bbs/email_stop.php | 2 +- bbs/memo_form.php | 4 ++-- bbs/register_email.php | 4 ++-- bbs/write_comment_update.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/adm/member_form_update.php b/adm/member_form_update.php index 1bf338e68..bcc7dc0ac 100644 --- a/adm/member_form_update.php +++ b/adm/member_form_update.php @@ -19,8 +19,8 @@ $mb_certify = isset($_POST['mb_certify']) ? preg_replace('/[^0-9a-z_]/i', '' $mb_zip = isset($_POST['mb_zip']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_zip']) : ''; // 광고성 정보 수신 -$mb_marketing_agree = isset($_POST['mb_marketing_agree']) ? clean_xss_tags($_POST['mb_marketing_agree'], 1, 1) : '0'; -$mb_thirdparty_agree = isset($_POST['mb_thirdparty_agree']) ? clean_xss_tags($_POST['mb_thirdparty_agree'], 1, 1) : '0'; +$mb_marketing_agree = isset($_POST['mb_marketing_agree']) ? addslashes(clean_xss_tags(stripslashes($_POST['mb_marketing_agree']), 1, 1)) : '0'; +$mb_thirdparty_agree = isset($_POST['mb_thirdparty_agree']) ? addslashes(clean_xss_tags(stripslashes($_POST['mb_thirdparty_agree']), 1, 1)) : '0'; // 관리자가 자동등록방지를 사용해야 할 경우 ( 회원의 비밀번호 변경시 캡챠를 체크한다 ) if ($mb_password) { @@ -84,9 +84,9 @@ for ($i = 1; $i <= 10; $i++) { foreach ($check_keys as $key) { if( in_array($key, array('mb_signature', 'mb_profile')) ){ - $posts[$key] = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1, 0, 0) : ''; + $posts[$key] = isset($_POST[$key]) ? addslashes(clean_xss_tags(stripslashes($_POST[$key]), 1, 1, 0, 0)) : ''; } else { - $posts[$key] = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1) : ''; + $posts[$key] = isset($_POST[$key]) ? addslashes(clean_xss_tags(stripslashes($_POST[$key]), 1, 1)) : ''; } } diff --git a/bbs/email_stop.php b/bbs/email_stop.php index 0a17ec707..997707a58 100644 --- a/bbs/email_stop.php +++ b/bbs/email_stop.php @@ -1,7 +1,7 @@ 50) { $w = isset($_POST['w']) ? clean_xss_tags($_POST['w']) : ''; $wr_name = isset($_POST['wr_name']) ? addslashes(clean_xss_tags(stripslashes(trim($_POST['wr_name'])))) : ''; $wr_name = preg_replace("#[\\\]+$#", "", $wr_name); -$wr_secret = isset($_POST['wr_secret']) ? clean_xss_tags($_POST['wr_secret']) : ''; +$wr_secret = isset($_POST['wr_secret']) ? addslashes(clean_xss_tags(stripslashes($_POST['wr_secret']))) : ''; $wr_email = $wr_subject = ''; $reply_array = array();