[security]회원 ID/이메일 열거 공격 차단

This commit is contained in:
thisgun committed 2026-04-16 02:54:05 +00:00
1 parent 5331aa8be5
commit dccb50d8a3
5 files changed
+57 -7

No files matched your search

+5
View File
@@ -2,6 +2,11 @@
include_once('./_common.php');
include_once(G5_LIB_PATH.'/register.lib.php');
// 회원 닉네임 열거 공격 방지를 위한 Rate Limit (분당 30회)
if (function_exists('check_rate_limit') && !check_rate_limit('ajax_mb_nick_check', 30, 60)) {
die('너무 많은 요청이 발생했습니다. 잠시 후 다시 시도해 주세요.');
}
$mb_nick = isset($_POST['reg_mb_nick']) ? trim($_POST['reg_mb_nick']) : '';
$mb_id = isset($_POST['reg_mb_id']) ? trim($_POST['reg_mb_id']) : '';