PHP-025 / 중급
로그인 시도 제한(Rate Limit) 미적용
왜 문제가 될까요?
자동화된 대입 공격(credential stuffing)이 가능하다.
이렇게 수정하세요
php
Route::post('/login', [AuthController::class, 'login'])->middleware('throttle:5,1');
// 또는 RateLimiter::for 로 IP+이메일 조합 제한, 실패 누적 잠금