Skip to content

[Fix] SSE 연결에서 accessToken URL 노출 보안 문제 해결 #392

@coderabbitai

Description

@coderabbitai

문제 설명

현재 SSE(Server-Sent Events) 연결 설정 시 accessToken을 URL 쿼리 파라미터로 전달하고 있습니다. 이는 다음과 같은 보안 위험을 초래합니다:

  • 서버 액세스 로그에 토큰 기록
  • 브라우저 히스토리에 토큰 저장
  • Referer 헤더를 통한 제3자 유출 가능성

해결 방안

백엔드에서 EventSource 연결 시 HttpOnly 쿠키를 통한 인증을 지원하도록 수정이 필요합니다. 프론트엔드에서는 withCredentials: true 옵션을 사용하여 쿠키가 자동으로 전송되도록 설정할 수 있습니다.

관련 정보

Metadata

Metadata

Assignees

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