🇰🇷 한글 설명
File Viewer의 레거시 DOC 렌더러에서 발생하는 취약점으로, 문서 내 하이퍼링크의 URL 스킴을 적절히 제한하지 않아 발생합니다. 공격자가 조작된 DOC 파일을 통해 javascript: 또는 vbscript:와 같은 위험한 스킴을 삽입하면, 사용자가 링크를 클릭할 때 임베딩된 애플리케이션의 권한으로 악성 스크립트가 실행될 수 있습니다.
💡 쉬운 설명
문서 파일을 보여주는 프로그램에서 문서 속 링크를 검사할 때 보안 허점이 발견되었습니다. 나쁜 의도로 만든 링크를 클릭하면 해커가 사용자의 브라우저에서 몰래 명령을 실행할 수 있습니다.
🇺🇸 원문 (English)
File Viewer is a browser-native viewer for Office, PDF, CAD, archive, and other files in private and internal web applications. Prior to @file-viewer/doc 2.3.1 and msdoc-viewer 0.2.2, the legacy DOC renderer emitted document-controlled hyperlink targets into generated HTML after character escaping but without restricting URL schemes. A crafted legacy DOC file could place javascript:, vbscript:, data:, or another unsafe scheme in a rendered link, and script could execute in the embedding application's origin when a user clicked the link. The fix blocks external document links by default, allows only HTTP(S), mail, telephone, safe relative URLs, and internal bookmarks when external links are explicitly enabled, and applies mount-boundary sanitization as defense in depth. This issue is fixed in @file-viewer/doc 2.3.1 and msdoc-viewer 0.2.2.
📍 영향받는 시스템
@file-viewer/doc 2.3.1 미만 버전 및 msdoc-viewer 0.2.2 미만 버전
⚔️ 공격 벡터
조작된 DOC 파일 내에 위험한 URL 스킴(javascript:, vbscript: 등)이 포함된 하이퍼링크를 삽입하여 사용자 클릭 유도
🛡️ 대응 방법
@file-viewer/doc 2.3.1 또는 msdoc-viewer 0.2.2 이상 버전으로 업데이트
🔧 검증 코드
출력된 버전이 @file-viewer/doc 2.3.1 또는 msdoc-viewer 0.2.2보다 낮은지 확인하십시오.
npm list @file-viewer/doc msdoc-viewer | grep -E '@file-viewer/doc|msdoc-viewer'