🇰🇷 한글 설명
Roo Code의 명령어 자동 승인 모듈에서 심각한 OS 커맨드 인젝션 취약점이 발견되었습니다. 화이트리스트 보안 메커니즘이 쉘 명령어 치환($(...) 및 백틱)을 제대로 처리하지 못해, 공격자가 안전한 명령어로 위장하여 원격 코드 실행(RCE)을 수행할 수 있습니다.
💡 쉬운 설명
안전한 명령어인지 확인하는 필터에 구멍이 있어, 해커가 나쁜 명령어를 안전한 것처럼 속여 실행할 수 있는 취약점입니다. 이를 통해 사용자 모르게 컴퓨터의 제어권을 탈취당할 수 있습니다.
🇺🇸 원문 (English)
Roo Code's command auto-approval module contains a critical OS command injection vulnerability that renders its whitelist security mechanism completely ineffective. The system relies on fragile regular expressions to parse command structures; while it attempts to intercept dangerous operations, it fails to account for standard Shell command substitution Roo Code (specifically$(...)and backticks ...). An attacker can construct a command such as git log --grep="$(malicious_command)", forcing Syntx to misidentify it as a safe git operation and automatically approve it. The underlying Shell prioritizes the execution of the malicious code injected within the arguments, resulting in Remote Code Execution without any user interaction.
📍 영향받는 시스템
Roo Code (명령어 자동 승인 모듈 사용 버전)
⚔️ 공격 벡터
쉘 명령어 치환 문법을 이용한 화이트리스트 우회 및 OS 커맨드 인젝션
🛡️ 대응 방법
입력값 검증 로직이 개선된 최신 버전으로 업데이트하거나 자동 승인 기능을 비활성화하십시오.
🔧 검증 코드
설치된 Roo Code의 버전이 취약한 버전 범위에 포함되는지 확인하십시오.
npm list -g @roocode/core 2>/dev/null | grep -E 'version'