🔍 CVE-2023-30846

9.1
CVSS Score
CRITICAL
2023-04-26
2026-06-17 05:55
✅ 완료

🇰🇷 한글 설명

typed-rest-client 1.7.3 이하 버전에서 인증 데이터가 제3자에게 유출될 수 있는 취약점이 발견되었습니다. 인증 핸들러를 사용하여 요청을 보낼 때, 대상 호스트가 다른 호스트로 리다이렉션(3xx)을 수행하면 인증 헤더가 새 호스트로 그대로 전달되는 문제입니다. 이 문제는 1.8.0 버전에서 수정되었습니다.

💡 쉬운 설명

인증 정보가 담긴 편지를 보냈는데, 중간에 주소가 바뀌었다고 안내를 받자 편지 내용(비밀번호 등)을 그대로 들고 엉뚱한 곳으로 배달해버리는 보안 결함입니다. 이로 인해 사용자의 중요한 로그인 정보가 해커에게 노출될 수 있습니다.

🇺🇸 원문 (English)

typed-rest-client is a library for Node Rest and Http Clients with typings for use with TypeScript. Users of the typed-rest-client library version 1.7.3 or lower are vulnerable to leak authentication data to 3rd parties. The flow of the vulnerability is as follows: First, send any request with `BasicCredentialHandler`, `BearerCredentialHandler` or `PersonalAccessTokenCredentialHandler`. Second, the target host may return a redirection (3xx), with a link to a second host. Third, the next request will use the credentials to authenticate with the second host, by setting the `Authorization` header. The expected behavior is that the next request will *NOT* set the `Authorization` header. The problem was fixed in version 1.8.0. There are no known workarounds.

📍 영향받는 시스템

typed-rest-client version 1.7.3 or lower

⚔️ 공격 벡터

공격자가 제어하는 호스트로 리다이렉션을 유도하여 Authorization 헤더에 포함된 인증 정보를 탈취

🛡️ 대응 방법

typed-rest-client 라이브러리를 1.8.0 이상의 최신 버전으로 업데이트

🔧 검증 코드

출력된 결과에서 typed-rest-client의 버전을 확인하여 1.8.0 미만인지 체크

Shell / Script
npm list typed-rest-client

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

💻 영향받는 소프트웨어

Spring Data REST