🔍 CVE-2021-43800

7.5
CVSS Score
HIGH
2021-12-06
2026-06-17 04:11
✅ 완료

🇰🇷 한글 설명

Wiki.js 2.5.254 미만 버전에서 Windows 호스트를 사용할 경우 디렉토리 경로 탐색 취약점이 발생합니다. 로컬 자산 캐시 기능이 활성화된 저장 모듈을 사용할 때, 악의적인 사용자가 특수하게 조작된 URL을 통해 파일 시스템의 임의 파일을 읽을 수 있습니다.

💡 쉬운 설명

해커가 특수한 주소를 입력하여 서버 컴퓨터 안에 있는 중요한 파일들을 몰래 훔쳐볼 수 있는 보안 약점입니다. 이 문제는 특히 윈도우 운영체제에서 특정 기능을 켰을 때 발생합니다.

🇺🇸 원문 (English)

Wiki.js is a wiki app built on Node.js. Prior to version 2.5.254, directory traversal outside of Wiki.js context is possible when a storage module with local asset cache fetching is enabled on a Windows host. A malicious user can potentially read any file on the file system by crafting a special URL that allows for directory traversal. This is only possible on a Wiki.js server running on Windows, when a storage module implementing local asset cache (e.g Local File System or Git) is enabled and that no web application firewall solution (e.g. cloudflare) strips potentially malicious URLs. Commit number 414033de9dff66a327e3f3243234852f468a9d85 fixes this vulnerability by sanitizing the path before it is passed on to the storage module. The sanitization step removes any windows directory traversal sequences from the path. As a workaround, disable any storage module with local asset caching capabilities (Local File System, Git).

📍 영향받는 시스템

Wiki.js 2.5.254 미만 버전 (Windows 호스트 및 로컬 자산 캐시 저장 모듈 활성화 시)

⚔️ 공격 벡터

디렉토리 탐색 시퀀스가 포함된 특수하게 조작된 URL 요청

🛡️ 대응 방법

Wiki.js를 2.5.254 이상 버전으로 업데이트하거나, 임시 조치로 로컬 파일 시스템 또는 Git과 같은 로컬 자산 캐싱 저장 모듈을 비활성화하십시오.

🔧 검증 코드

출력된 버전 정보가 2.5.254 미만인지 확인하여 취약 여부를 판단합니다.

Shell / Script
curl -s http://<target-ip>:<port>/api/info | grep -oE '"version":"[^"]+"'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Node.js