🔍 CVE-2024-39694

4.7
CVSS Score
MEDIUM
2024-07-31
2026-06-17 07:42
✅ 완료

🇰🇷 한글 설명

Duende IdentityServer에서 악의적으로 조작된 URL을 로컬 및 신뢰할 수 있는 URL로 잘못 인식하는 취약점이 발견되었습니다. 공격자가 이 취약점을 이용해 리다이렉트 경로를 조작하면 사용자를 신뢰할 수 없는 제3자 사이트로 유도할 수 있습니다. 이는 직접적인 토큰 탈취를 허용하지는 않지만, 피싱 공격의 수단으로 악용될 수 있습니다.

💡 쉬운 설명

공격자가 가짜 주소를 진짜 주소처럼 속여서 사용자를 가짜 사이트로 이동시킬 수 있는 문제입니다. 이 과정에서 사용자의 아이디나 비밀번호를 훔치려는 피싱 공격이 발생할 수 있습니다.

🇺🇸 원문 (English)

Duende IdentityServer is an OpenID Connect and OAuth 2.x framework for ASP.NET Core. It is possible for an attacker to craft malicious Urls that certain functions in IdentityServer will incorrectly treat as local and trusted. If such a Url is returned as a redirect, some browsers will follow it to a third-party, untrusted site. Note: by itself, this vulnerability does **not** allow an attacker to obtain user credentials, authorization codes, access tokens, refresh tokens, or identity tokens. An attacker could however exploit this vulnerability as part of a phishing attack designed to steal user credentials. This vulnerability is fixed in 7.0.6, 6.3.10, 6.2.5, 6.1.8, and 6.0.5. Duende.IdentityServer 5.1 and earlier and all versions of IdentityServer4 are no longer supported and will not be receiving updates. If upgrading is not possible, use `IUrlHelper.IsLocalUrl` from ASP.NET Core to validate return Urls in user interface code in the IdentityServer host.

📍 영향받는 시스템

Duende.IdentityServer 7.0.6 미만, 6.3.10 미만, 6.2.5 미만, 6.1.8 미만, 6.0.5 미만 버전 (IdentityServer4 및 5.1 이하 버전은 지원 종료)

⚔️ 공격 벡터

조작된 URL을 포함한 요청을 보내 리다이렉트 기능을 통해 사용자를 외부 사이트로 유도하는 방식

🛡️ 대응 방법

Duende.IdentityServer를 최신 보안 패치 버전(7.0.6, 6.3.10, 6.2.5, 6.1.8, 6.0.5 이상)으로 업데이트하거나, IUrlHelper.IsLocalUrl을 사용하여 URL을 검증해야 합니다.

🔧 검증 코드

출력된 Duende.IdentityServer의 버전이 보안 패치가 적용된 버전보다 낮은지 확인합니다.

Shell / Script
dotnet list package | grep Duende.IdentityServer

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM Verify Identity Access