🇰🇷 한글 설명
macOS용 GitAhead 2.7.1 이하 버전에서 명령 주입(Command Injection) 취약점이 발견되었습니다. 공격자가 특수하게 조작된 파일명을 포함한 저장소를 커밋하면, 사용자가 'Show in Finder' 기능을 실행할 때 AppleScript를 통해 악성 셸 명령어가 실행될 수 있습니다.
💡 쉬운 설명
파일 이름에 몰래 숨겨진 명령어를 넣어두는 방식입니다. 사용자가 Finder에서 파일을 확인하려고 클릭하는 순간, 컴퓨터가 공격자가 의도한 나쁜 명령을 대신 실행하게 됩니다.
🇺🇸 원문 (English)
GitAhead through 2.7.1 on macOS contains a command injection vulnerability that allows attackers to execute shell commands by crafting repository filenames interpolated unescaped into the Show in Finder AppleScript. Attackers can commit a file whose path contains a double quote followed by a do shell script payload, which runs as the victim user when Show in Finder is chosen.
📍 영향받는 시스템
GitAhead 2.7.1 이하 버전 (macOS 환경)
⚔️ 공격 벡터
악성 파일명이 포함된 저장소를 통해 사용자의 AppleScript 실행 유도
🛡️ 대응 방법
GitAhead를 최신 보안 패치가 적용된 버전으로 업데이트하거나, 신뢰할 수 없는 저장소의 파일을 Finder에서 열지 않도록 주의합니다.
🔧 검증 코드
출력된 버전이 2.7.1 이하인지 확인하여 취약 여부를 판단합니다.
gitahead --version 2>/dev/null || echo 'Version check not supported via CLI'