Skip to content

Fix: Refresh Token HMAC 상수 시간 비교 #366

Description

@coconutcococode

Issue Overview

  • 이슈 개요: Refresh Token HMAC 비교를 상수 시간 비교로 보강합니다.

Issue Description

  • 세부 설명:
    • 현재 AuthService.refresh는 계산한 HMAC hex와 저장값을 String.equals로 비교합니다.
    • 동일한 lowercase 64자리 hex 계약을 유지하면서 MessageDigest.isEqual 기반 비교로 timing 차이를 줄입니다.
    • Refresh Token 발급·회전·로그아웃·비밀번호 재설정 동작과 API 계약은 변경하지 않습니다.

To do

  • 상수 시간 HMAC 비교 helper 추가
  • 일치·불일치·null 저장값 회귀 테스트
  • 전체 빌드와 V31 migration gate 검증

제외 범위

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions