🇰🇷 한글 설명
Notepad++ 8.9.7 미만 버전에서 session.xml의 backupFilePath 속성을 검증할 때 경로 정규화 과정이 누락되어 발생합니다. 스냅샷 모드 복구 시 상위 디렉토리 이동 시퀀스(..)를 사용하여 백업 디렉토리 외부의 임의 파일을 에디터 탭으로 읽어올 수 있는 취약점입니다.
💡 쉬운 설명
메모장 프로그램이 파일을 다시 불러올 때, 원래 저장된 폴더가 아닌 컴퓨터의 다른 중요한 파일을 몰래 읽어올 수 있는 보안 약점이 발견되었습니다. 공격자가 특수하게 조작된 설정 파일을 이용해 사용자의 개인 파일을 열람할 위험이 있습니다.
🇺🇸 원문 (English)
Notepad++ is a free and open-source source code editor. Prior to 8.9.7, Notepad++ validates the backupFilePath attribute from session.xml with std::wstring::starts_with against the expected backup directory without path normalization, allowing parent-directory sequences during snapshot-mode restoration to read an arbitrary user-readable file outside the backup directory into an editor tab. This issue is fixed in version 8.9.7.
📍 영향받는 시스템
Notepad++ 8.9.7 미만 모든 버전
⚔️ 공격 벡터
조작된 session.xml 파일을 통한 경로 조작(Path Traversal) 공격
🛡️ 대응 방법
Notepad++를 최신 버전인 8.9.7 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 8.9.7보다 낮은지 확인하십시오.
notepadplusplus --version 2>/dev/null || powershell "(Get-Item 'C:\Program Files\Notepad++\notepad++.exe').VersionInfo.FileVersion"