🇰🇷 한글 설명
Notepad++ 8.9.8 미만 버전에서 '시스템으로 실행(Run by system)' 기능 사용 시, 사용자가 선택한 파일 대신 동일한 경로에 있는 다른 명령 스크립트(.cmd)가 실행될 수 있는 취약점입니다. 공격자가 특정 파일명과 동일한 이름의 스크립트를 미리 배치해 두면 사용자의 권한으로 악성 코드가 실행될 수 있습니다.
💡 쉬운 설명
메모장 프로그램에서 특정 기능을 실행할 때, 원래 열려 있던 파일이 아닌 공격자가 몰래 만들어둔 가짜 명령 파일이 실행될 수 있는 문제입니다. 사용자가 파일을 실행하는 순간 공격자가 의도한 프로그램이 사용자 권한으로 몰래 돌아갈 수 있습니다.
🇺🇸 원문 (English)
Notepad++ is a free and open-source source code editor. Prior to 8.9.8, the Folder as Workspace Run by system action in Notepad++ can resolve a different sibling file than the file selected by the user. When an attacker places a command script whose name is the selected text-file path with .cmd appended, and the user invokes Run by system on the text file on Windows 10 or Windows 11, Notepad++ can execute the sibling script as the current user instead of opening the selected file. This issue is fixed in version 8.9.8.
📍 영향받는 시스템
Notepad++ 8.9.8 미만 버전 (Windows 10, Windows 11)
⚔️ 공격 벡터
공격자가 특정 경로에 대상 파일과 이름이 같고 확장자만 .cmd인 악성 스크립트를 배치한 후 사용자가 해당 파일을 실행하도록 유도
🛡️ 대응 방법
Notepad++를 최신 버전인 8.9.8 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 8.9.8 미만인지 확인하십시오.
notepad++ --version 2>/dev/null || powershell "(Get-Item 'C:\Program Files\Notepad++\notepad++.exe').VersionInfo.FileVersion"