🔍 CVE-2023-38691

5.0
CVSS Score
MEDIUM
2023-08-04
2026-06-17 06:10
✅ 완료

🇰🇷 한글 설명

matrix-appservice-bridge의 OpenID 교환 과정에서 서버 이름 검증이 누락되어 발생하는 취약점입니다. 악의적인 Matrix 서버가 특정 사용자의 MXID를 사용하여 사용자를 사칭하고 프로비저닝 API를 통해 권한을 탈취할 수 있습니다.

💡 쉬운 설명

가짜 서버가 다른 사람인 척 속여서 시스템에 접속할 수 있는 보안 구멍이 발견되었습니다. 이로 인해 공격자가 사용자의 신분을 도용하여 시스템 설정을 마음대로 바꿀 수 있습니다.

🇺🇸 원문 (English)

matrix-appservice-bridge provides an API for setting up bridges. Starting in version 4.0.0 and prior to versions 8.1.2 and 9.0.1, a malicious Matrix server can use a foreign user's MXID in an OpenID exchange, allowing a bad actor to impersonate users when using the provisioning API. The library does not check that the servername part of the `sub` parameter (containing the user's *claimed* MXID) is the the same as the servername we are talking to. A malicious actor could spin up a server on any given domain, respond with a `sub` parameter according to the user they want to act as and use the resulting token to perform provisioning requests. Versions 8.1.2 and 9.0.1 contain a patch. As a workaround, disable the provisioning API.

📍 영향받는 시스템

matrix-appservice-bridge 4.0.0 이상 8.1.2 미만 및 9.0.1 미만 버전

⚔️ 공격 벡터

악의적인 Matrix 서버가 OpenID의 sub 파라미터 내 서버 이름을 조작하여 사용자 사칭

🛡️ 대응 방법

버전 8.1.2 또는 9.0.1 이상으로 업데이트하거나, 프로비저닝 API를 비활성화하십시오.

🔧 검증 코드

출력된 버전이 8.1.2 또는 9.0.1보다 낮은지 확인하십시오.

Shell / Script
matrix-appservice-bridge --version 2>/dev/null || dpkg -l | grep matrix-appservice-bridge

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Microsoft Exchange Server