🇰🇷 한글 설명
launch-editor 패키지의 launchEditor 함수에서 file 인자에 대한 검증이 미흡하여 발생하는 취약점입니다. 2.9.0 미만 버전에서는 공격자가 특수 문자가 포함된 파일명을 입력하여 Windows 환경에서 임의의 명령어를 실행할 수 있습니다. 이 문제는 vite 5.4.9에 포함된 launch-editor 2.9.0 버전에서 수정되었습니다.
💡 쉬운 설명
파일을 여는 프로그램에 악성 명령어가 섞인 파일 이름을 전달하여 컴퓨터를 마음대로 조종할 수 있는 보안 약점입니다. 윈도우 운영체제에서 특히 위험하며, 파일 이름에 특수 문자를 넣어 공격할 수 있습니다.
🇺🇸 원문 (English)
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to version 2.9.0, due to the insufficient sanitization of the `file` argument in the `launchEditor`, an attacker can execute arbitrary commands on Windows by supplying a filename that contains special characters. This issue has been fixed in the `launch-editor` version 2.9.0, corresponding to vite version 5.4.9.
📍 영향받는 시스템
launch-editor 2.9.0 미만 버전 (vite 5.4.9 미만 버전 포함)
⚔️ 공격 벡터
특수 문자가 포함된 악의적인 파일명을 launchEditor 함수의 인자로 전달하여 명령 실행
🛡️ 대응 방법
launch-editor를 2.9.0 이상으로 업데이트하거나 vite를 5.4.9 이상으로 업데이트
🔧 검증 코드
출력된 결과에서 launch-editor의 버전이 2.9.0 미만인지 확인