🇰🇷 한글 설명
electerm 3.11.11 미만 버전에서 신뢰할 수 없는 파일 경로를 rmrf(), mv(), cp() 함수에 삽입할 때 운영체제 명령어가 생성되는 취약점이 발견되었습니다. 악의적인 SSH 또는 SFTP 서버가 특수 문자가 포함된 파일명을 제공할 경우, 원격 파일 전송이나 파일 조작 과정에서 임의의 명령어가 실행될 수 있습니다. 이 취약점은 POSIX 및 Windows 시스템에서 사용자 권한으로 데이터 유출, 파일 수정, 악성코드 설치 등을 가능하게 합니다.
💡 쉬운 설명
해커가 만든 가짜 서버에 접속하면, 파일 이름에 숨겨진 악성 명령어가 내 컴퓨터에서 자동으로 실행될 수 있는 보안 약점입니다. 이를 통해 해커가 내 파일을 훔치거나 컴퓨터를 망가뜨릴 수 있습니다.
🇺🇸 원문 (English)
electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to 3.11.11, electerm constructs operating system commands in src/app/lib/fs.js by interpolating untrusted file paths into the rmrf(), mv(), and cp() functions. A malicious SSH or SFTP server can provide a filename containing quote characters and shell metacharacters, and a victim can cause that filename to reach the affected operation during remote-to-local transfer, conflict renaming, copying, moving, or removal. The generated `rm -rf`, mv, `cp -r`, PowerShell Remove-Item, Move-Item, or Copy-Item command can then interpret the filename as shell syntax. This allows arbitrary command execution with the electerm desktop user's privileges on POSIX and Windows systems, enabling data exfiltration, file modification, malware installation, or denial of service. This issue is fixed in version 3.11.11.
📍 영향받는 시스템
electerm 버전 3.11.11 미만
⚔️ 공격 벡터
악의적인 SSH/SFTP 서버를 통한 특수 문자가 포함된 파일명 전송 및 파일 조작 유도
🛡️ 대응 방법
electerm을 최신 버전인 3.11.11 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 3.11.11보다 낮으면 취약한 상태입니다.
electerm --version 2>/dev/null | grep -E '3\.[0-9]+\.[0-9]+'