[security]쇼핑몰 update 엔드포인트 CSRF 보호 추가

This commit is contained in:
thisgun committed 2026-04-16 02:02:26 +00:00
1 parent 92a052fa7a
commit 3e0e8be6da
8 files changed
+78

No files matched your search

+5
View File
@@ -2,6 +2,11 @@
include_once('./_common.php');
include_once(G5_LIB_PATH.'/mailer.lib.php');
// CSRF 방지: 무통장입금만 Origin/Referer 검증 (PG 결제는 PG사에서 검증하므로 제외)
if (isset($od_settle_case) && $od_settle_case == '무통장' && function_exists('check_request_origin')) {
check_request_origin(G5_SHOP_URL);
}
$post_p_hash = isset($_POST['P_HASH']) ? $_POST['P_HASH'] : '';
$post_enc_data = isset($_POST['enc_data']) ? $_POST['enc_data'] : '';
$post_enc_info = isset($_POST['enc_info']) ? $_POST['enc_info'] : '';