🔍 CVE-2024-3025

9.9
CVSS Score
CRITICAL
2024-04-10
2026-06-17 07:43
✅ 완료

🇰🇷 한글 설명

mintplex-labs/anything-llm의 로고 파일명 기능에서 사용자 입력값 검증이 미흡하여 경로 탐색(Path Traversal) 취약점이 발생합니다. 공격자는 로고 파일명을 조작하여 제한된 디렉터리 외부의 파일을 읽거나 삭제할 수 있으며, 특히 애플리케이션 데이터베이스와 같은 민감한 파일에 접근할 위험이 있습니다.

💡 쉬운 설명

프로그램의 로고를 바꾸는 과정에서 파일 이름을 교묘하게 조작해, 원래 접근하면 안 되는 컴퓨터 내부의 중요한 파일들을 몰래 훔쳐보거나 지울 수 있는 문제입니다. 마치 집주인이 허락한 물건만 만지게 해야 하는데, 이름표를 속여서 금고 안의 서류까지 꺼낼 수 있는 상태와 같습니다.

🇺🇸 원문 (English)

mintplex-labs/anything-llm is vulnerable to path traversal attacks due to insufficient validation of user-supplied input in the logo filename functionality. Attackers can exploit this vulnerability by manipulating the logo filename to reference files outside of the restricted directory. This can lead to unauthorized reading or deletion of files by utilizing the `/api/system/upload-logo` and `/api/system/logo` endpoints. The issue stems from the lack of filtering or validation on the logo filename, allowing attackers to target sensitive files such as the application's database.

📍 영향받는 시스템

mintplex-labs/anything-llm (로고 업로드 및 조회 기능 사용 시)

⚔️ 공격 벡터

/api/system/upload-logo 및 /api/system/logo 엔드포인트를 통한 파일 경로 조작

🛡️ 대응 방법

애플리케이션을 최신 보안 패치가 적용된 버전으로 업데이트하고, 파일 업로드 시 입력값에 대한 경로 검증 로직을 강화해야 합니다.

🔧 검증 코드

명령어 실행 시 경로 조작을 통한 파일 접근 시도에 대해 에러 메시지가 발생하거나 비정상적인 파일 내용이 출력되는지 확인합니다.

Shell / Script
curl -s -X GET http://<target-ip>:<port>/api/system/logo | grep -E 'error|traversal'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Data REST