🇰🇷 한글 설명
Ridvay Code의 명령 자동 승인 모듈에서 화이트리스트 보안 메커니즘을 무력화하는 심각한 OS 명령 주입 취약점이 발견되었습니다. 시스템이 정규 표현식을 사용하여 명령 구조를 분석할 때 쉘 명령 치환($(...) 및 백틱)을 제대로 처리하지 못해 발생합니다. 공격자는 안전한 명령 내부에 악성 코드를 삽입하여 사용자 개입 없이 원격 코드 실행(RCE)을 수행할 수 있습니다.
💡 쉬운 설명
보안 프로그램이 '안전한 명령어'라고 착각하게 만드는 특수 기호를 사용하여, 몰래 나쁜 명령어를 실행시키는 취약점입니다. 공격자가 명령어를 교묘하게 섞어 보내면 시스템이 이를 검사하지 않고 그대로 실행해 버립니다.
🇺🇸 원문 (English)
Ridvay 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 Ridvay 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.
📍 영향받는 시스템
Ridvay Code (command auto-approval module 포함 버전)
⚔️ 공격 벡터
안전한 명령의 인자값 내에 쉘 명령 치환($(...) 또는 `...`)을 삽입하여 화이트리스트를 우회하는 방식
🛡️ 대응 방법
명령어 파싱 시 정규 표현식 대신 엄격한 구문 분석을 적용하고, 쉘 명령 치환 기호를 차단하거나 이스케이프 처리하도록 업데이트하십시오.
🔧 검증 코드
명령어 실행 결과에 'auto-approval' 모듈이 활성화되어 있는지 확인하고, 특수 기호가 포함된 명령이 필터링 없이 출력되는지 테스트합니다.
echo "git log --grep=\"\"\""; echo "Ridvay Code version check command" | grep -i 'auto-approval'