🇰🇷 한글 설명
Trilium의 0.103.0 이하 버전에서 'Safe import' 필터가 mindMap 노트 유형의 JSON 콘텐츠를 검사하지 않아 발생하는 보안 취약점입니다. 공격자가 조작된 마인드맵 노드를 포함한 가져오기 파일을 통해 악성 HTML을 삽입할 수 있으며, 데스크톱 클라이언트의 Electron 환경에서는 이를 통해 원격 코드 실행(RCE)까지 가능합니다.
💡 쉬운 설명
마인드맵 노트를 불러올 때 보안 검사가 누락되어 악성 코드가 실행될 수 있는 문제입니다. 특히 데스크톱 앱을 사용할 경우 해커가 사용자의 컴퓨터를 완전히 제어할 위험이 있습니다.
🇺🇸 원문 (English)
Trilium is an open-source hierarchical note-taking application. In versions up to and including 0.103.0, the default-on "Safe import" filter sanitizes HTML only for text notes and excludes the mindMap note type, whose JSON content is stored without sanitization, allowing an attacker-supplied import archive to embed a payload that renders as arbitrary HTML. A mind map node can carry a dangerouslySetInnerHTML property that the Mind Elixir library assigns directly to a node's innerHTML, so a malicious note survives Safe import and executes script as soon as the victim opens the imported mind map. On the desktop client the Electron renderer runs with Node integration enabled, so the injected JavaScript escalates from cross-site scripting to full remote code execution on the victim's machine. This issue is fixed in version 0.104.0.
📍 영향받는 시스템
Trilium versions up to and including 0.103.0
⚔️ 공격 벡터
악성 페이로드가 포함된 마인드맵 노트 가져오기(Import) 아카이브를 통한 공격
🛡️ 대응 방법
Trilium을 0.104.0 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.104.0보다 낮은지 확인하십시오.
trilium --version 2>/dev/null || echo 'Check installed version manually'