🇰🇷 한글 설명
SiYuan 개인 지식 관리 시스템 3.6.0 이하 버전에서 발생하는 취약점으로, 파일 업로드 시 파일 이름에 대한 검증이 부족하여 발생합니다. 관리자가 임의의 경로에 파일을 작성할 수 있어 시스템 파일을 덮어쓰거나 원격 코드 실행(RCE)을 통해 컨테이너 전체를 장악할 수 있습니다.
💡 쉬운 설명
파일을 올릴 때 이름에 숨겨진 명령어를 이용해 컴퓨터의 중요한 파일을 마음대로 바꿀 수 있는 문제입니다. 이를 통해 해커가 컴퓨터를 완전히 제어하거나 시스템을 망가뜨릴 수 있습니다.
🇺🇸 원문 (English)
SiYuan is a personal knowledge management system. In versions 3.6.0 and below, POST /api/import/importSY and POST /api/import/importZipMd write uploaded archives to a path derived from the multipart filename field without sanitization, allowing an admin to write files to arbitrary locations outside the temp directory - including system paths that enable RCE. This can lead to aata destruction by overwriting workspace or application files, and for Docker containers running as root (common default), this grants full container compromise. This issue has been fixed in version 3.6.1.
📍 영향받는 시스템
SiYuan 3.6.0 및 그 이하 모든 버전
⚔️ 공격 벡터
POST /api/import/importSY 또는 POST /api/import/importZipMd API를 통한 악의적인 파일 이름 업로드
🛡️ 대응 방법
SiYuan을 최신 버전인 3.6.1 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 정보가 3.6.0 이하이면 취약한 상태이며, 3.6.1 이상이면 안전합니다.
curl -s http://localhost:PORT/api/version | grep -E '3\.[0-6]\.'