🔍 CVE-2025-69217

7.7
CVSS Score
HIGH
2025-12-30
2026-10-13 08:10
✅ 완료

🇰🇷 한글 설명

coturn 4.6.2r5~4.7.0-r4 버전에서 libc의 weak random() 함수를 사용하여 50개의 연속 nonce를 수집하면 난수생성기 상태를 완전히 복구할 수 있습니다. 이를 통해 자격증명이 있을 때 인증 없이 인증된 메시지를 전송하고 IP 스푸핑 및 포트 무작위화를 예측할 수 있습니다.

💡 쉬운 설명

coturn이 매우 예측 가능한 난수를 사용하여 공격자가 암호를 알면 약 50개 요청으로 인증을 우회할 수 있습니다. 미래의 인증 토큰과 포트 번호를 미리 계산할 수 있어 IP 위장 공격이 가능합니다.

🇺🇸 원문 (English)

coturn is a free open source implementation of TURN and STUN Server. Versions 4.6.2r5 through 4.7.0-r4 have a bad random number generator for nonces and port randomization after refactoring. Additionally, random numbers aren't generated with openssl's RAND_bytes but libc's random() (if it's not running on Windows). When fetching about 50 sequential nonces (i.e., through sending 50 unauthenticated allocations requests) it is possible to completely reconstruct the current state of the random number generator, thereby predicting the next nonce. This allows authentication while spoofing IPs. An attacker can send authenticated messages without ever receiving the responses, including the nonce (requires knowledge of the credentials, which is e.g., often the case in IoT settings). Since the port randomization is deterministic given the pseudorandom seed, an attacker can exactly reconstruct the ports and, hence predict the randomization of the ports. If an attacker allocates a relay port, they know the current port, and they are able to predict the next relay port (at least if it is not used before). Commit 11fc465f4bba70bb0ad8aae17d6c4a63a29917d9 contains a fix.

📍 영향받는 시스템

coturn 4.6.2r5 ~ 4.7.0-r4

⚔️ 공격 벡터

50개의 unauthenticated allocation 요청으로 PRNG 상태 복구 후 nonce와 relay port 예측하여 인증 우회 및 IP 스푸핑

🛡️ 대응 방법

coturn을 버전 4.7.0-r5 이상으로 업그레이드 (커밋 11fc465f4bba70bb0ad8aae17d6c4a63a29917d9 포함)

🔧 검증 코드

4.7.0-r4 이하이면 취약, 4.7.0-r5 이상이면 패치됨

Shell / Script
coturn --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+-?r?[0-9]*' || dpkg -l coturn 2>/dev/null | awk '{print $3}'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

OpenSSL