🇰🇷 한글 설명
CodeWhale 0.8.64 미만 버전의 git_blame 도구에서 인자 주입 취약점이 발견되었습니다. 공격자는 검증되지 않은 rev 파라미터에 git 옵션을 주입하여 시스템 내의 SSH 키나 자격 증명과 같은 임의의 파일을 읽을 수 있습니다.
💡 쉬운 설명
프로그램이 사용자의 입력을 제대로 검사하지 않아 발생하는 보안 허점입니다. 공격자가 특수 명령어를 섞어 보내면, 원래 보여줘야 할 내용 대신 서버에 저장된 중요한 비밀 파일들을 몰래 읽어갈 수 있습니다.
🇺🇸 원문 (English)
CodeWhale versions before 0.8.64 contain an argument injection vulnerability in the git_blame tool that allows attackers to read arbitrary files by injecting git options into the unvalidated rev parameter. Attackers can supply rev values like --contents=/path/to/file to exfiltrate sensitive files such as SSH keys and credentials through the tool output returned to the model.
📍 영향받는 시스템
CodeWhale versions before 0.8.64
⚔️ 공격 벡터
git_blame 도구의 rev 파라미터에 --contents 옵션과 같은 악의적인 git 인자를 주입하여 공격
🛡️ 대응 방법
CodeWhale 버전을 0.8.64 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.8.64보다 낮으면 취약한 상태이며, 0.8.64 이상이면 안전합니다.
python3 -c 'import codewhale; print(codewhale.__version__)' 2>/dev/null || echo 'version check failed'