← PHP / Laravel 목차

PHP-025 / 중급

로그인 시도 제한(Rate Limit) 미적용

A07:2021 Identification and Authentication Failures · CWE-307 Improper Restriction of Excessive Authentication Attempts

왜 문제가 될까요?

자동화된 대입 공격(credential stuffing)이 가능하다.

이렇게 수정하세요

php
Route::post('/login', [AuthController::class, 'login'])->middleware('throttle:5,1');
// 또는 RateLimiter::for 로 IP+이메일 조합 제한, 실패 누적 잠금

더 읽기