← PHP / Laravel 목차

PHP-055 / 중급

"로그인 유지" 토큰 설계 오류

A07:2021 Identification and Authentication Failures · CWE-613 Insufficient Session Expiration

왜 문제가 될까요?

영구 토큰이 비밀번호 변경 후에도 살아 있다.

이렇게 수정하세요

php
Auth::login($user, remember: true);  // Laravel 의 remember_token 재생성 사용, 비밀번호 변경 시 세션 무효화

더 읽기