🔍 CVE-2024-4084

7.5
CVSS Score
HIGH
2024-06-05
2026-06-17 08:01
✅ 완료

🇰🇷 한글 설명

mintplex-labs/anything-llm 최신 버전에서 내부 IP 주소 및 프로토콜 접근 제한을 우회할 수 있는 SSRF 취약점이 발견되었습니다. 공격자는 IP 주소의 대체 표현 방식을 사용하여 필터링을 우회하고 내부 네트워크 자산, 웹 서비스, AWS 메타데이터 엔드포인트 등에 접근할 수 있습니다.

💡 쉬운 설명

프로그램이 내부 네트워크로 접속하는 것을 막으려 했으나, 공격자가 교묘한 주소 입력 방식을 사용하여 이 방어막을 뚫을 수 있는 문제입니다. 이를 통해 공격자는 회사 내부망의 중요한 정보나 서버에 몰래 접근할 수 있습니다.

🇺🇸 원문 (English)

A Server-Side Request Forgery (SSRF) vulnerability exists in the latest version of mintplex-labs/anything-llm, allowing attackers to bypass the official fix intended to restrict access to intranet IP addresses and protocols. Despite efforts to filter out intranet IP addresses starting with 192, 172, 10, and 127 through regular expressions and limit access protocols to HTTP and HTTPS, attackers can still bypass these restrictions using alternative representations of IP addresses and accessing other ports running on localhost. This vulnerability enables attackers to access any asset on the internal network, attack web services on the internal network, scan hosts on the internal network, and potentially access AWS metadata endpoints. The vulnerability is due to insufficient validation of user-supplied URLs, which can be exploited to perform SSRF attacks.

📍 영향받는 시스템

mintplex-labs/anything-llm 최신 버전 (취약점 패치 전 버전)

⚔️ 공격 벡터

IP 주소의 대체 표현(Alternative representations)을 이용한 URL 입력 및 SSRF 공격

🛡️ 대응 방법

AnythingLLM을 최신 보안 패치가 적용된 버전으로 업데이트하고, 입력 URL에 대한 검증 로직을 강화해야 합니다.

🔧 검증 코드

출력된 이미지의 태그(버전)를 확인하여 취약점이 해결된 최신 버전인지 확인합니다.

Shell / Script
docker images | grep anything-llm

📊 CVSS Vector String

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