🔍 CVE-2021-43842

5.4
CVSS Score
MEDIUM
2021-12-20
2026-06-17 04:11
✅ 완료

🇰🇷 한글 설명

Wiki.js 2.5.257 및 이전 버전에서 SVG 파일 업로드를 통한 저장형 XSS 취약점이 발견되었습니다. 공격자가 조작된 SVG 파일을 업로드하면 다른 사용자가 해당 파일을 직접 열람할 때 악성 자바스크립트가 실행될 수 있습니다.

💡 쉬운 설명

해커가 악성 코드가 숨겨진 이미지 파일을 게시판에 올리는 방식입니다. 다른 사용자가 그 이미지를 클릭해서 보면 사용자의 정보를 훔치거나 나쁜 동작을 수행할 수 있습니다.

🇺🇸 원문 (English)

Wiki.js is a wiki app built on Node.js. Wiki.js versions 2.5.257 and earlier are vulnerable to stored cross-site scripting through a SVG file upload. By creating a crafted SVG file, a malicious Wiki.js user may stage a stored cross-site scripting attack. This allows the attacker to execute malicious JavaScript when the SVG is viewed directly by other users. Scripts do not execute when loaded inside a page via normal `<img>` tags. Commit 5d3e81496fba1f0fbd64eeb855f30f69a9040718 fixes this vulnerability by adding an optional (enabled by default) SVG sanitization step to all file uploads that match the SVG mime type. As a workaround, disable file upload for all non-trusted users. Wiki.js version 2.5.260 is the first production version to contain a patch. Version 2.5.258 is the first development build to contain a patch and is available only as a Docker image as requarks/wiki:canary-2.5.258.

📍 영향받는 시스템

Wiki.js 2.5.257 및 그 이전 버전

⚔️ 공격 벡터

조작된 SVG 파일을 업로드하여 다른 사용자가 이를 직접 열람하도록 유도

🛡️ 대응 방법

Wiki.js를 2.5.260 이상의 버전으로 업데이트하거나 신뢰할 수 없는 사용자의 파일 업로드를 차단

🔧 검증 코드

출력된 버전 정보가 2.5.260 미만인 경우 취약한 상태입니다.

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

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker