🔍 CVE-2021-43856

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

🇰🇷 한글 설명

Wiki.js 2.5.263 및 이전 버전에서 브라우저가 직접 인라인으로 렌더링할 수 있는 파일 형식을 업로드할 때 저장형 XSS 취약점이 발생합니다. 공격자가 악성 자바스크립트가 포함된 XML 등의 파일을 업로드하면, 다른 사용자가 해당 파일을 직접 열람할 때 악성 코드가 실행될 수 있습니다.

💡 쉬운 설명

해커가 웹사이트에 악성 코드가 담긴 파일을 몰래 올려두고, 다른 사용자가 그 파일을 클릭하면 사용자의 정보를 훔치는 공격입니다. 브라우저가 파일을 실행 가능한 코드로 오해하여 발생하는 문제입니다.

🇺🇸 원문 (English)

Wiki.js is a wiki app built on Node.js. Wiki.js 2.5.263 and earlier is vulnerable to stored cross-site scripting through non-image file uploads for file types that can be viewed directly inline in the browser. By creating a malicious file which can execute inline JS when viewed in the browser (e.g. XML files), a malicious Wiki.js user may stage a stored cross-site scripting attack. This allows the attacker to execute malicious JavaScript when the file is viewed directly by other users. The file must be opened directly by the user and will not trigger directly in a normal Wiki.js page. A patch in version 2.5.264 fixes this vulnerability by adding an optional (enabled by default) force download flag to all non-image file types, preventing the file from being viewed inline in the browser. As a workaround, disable file upload for all non-trusted users. --- Thanks to @Haxatron for reporting this vulnerability. Initially reported via https://huntr.dev/bounties/266bff09-00d9-43ca-a4bb-bb540642811f/

📍 영향받는 시스템

Wiki.js 2.5.263 및 그 이전 모든 버전

⚔️ 공격 벡터

악성 자바스크립트가 포함된 비이미지 파일(예: XML)을 업로드한 후, 다른 사용자가 해당 파일을 브라우저에서 직접 열람하도록 유도

🛡️ 대응 방법

Wiki.js를 2.5.264 버전 이상으로 업데이트하거나, 신뢰할 수 없는 사용자의 파일 업로드 기능을 비활성화하십시오.

🔧 검증 코드

출력된 버전 정보가 2.5.264 미만인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
curl -s http://<your-wikijs-url>/api/info | grep -E 'version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Node.js