🇰🇷 한글 설명
mcp-shell 0.6.0 미만 버전에서 보안 설정 파일이 지정되지 않을 경우 보안 정책 없이 실행되는 취약점이 존재합니다. 이로 인해 보안 검증 단계가 생략되어, LLM이 shell_exec 도구를 통해 제한 없는 OS 명령어를 실행할 수 있습니다.
💡 쉬운 설명
프로그램의 보안 기능이 기본적으로 꺼져 있어, 인공지능이 컴퓨터에 마음대로 명령을 내릴 수 있는 상태입니다. 해커가 인공지능을 통해 컴퓨터의 모든 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
mcp-shell is an MCP server for running shell commands securely, auditably, and on demand. Prior to 0.6.0, config.go initializes Security.Enabled to false, and when MCP_SHELL_SEC_CONFIG_FILE is unset, main.go starts the documented bare-binary deployment without a security policy. SecurityValidator.validateCommand in security.go then short-circuits and allows every command supplied to the shell_exec MCP tool, so an LLM connected over stdio can execute unrestricted OS commands as the mcp-shell process user. The README from-source installation and MCP client configuration omit MCP_SHELL_SEC_CONFIG_FILE, making the insecure state the documented default. This issue is fixed in version 0.6.0.
📍 영향받는 시스템
mcp-shell version < 0.6.0
⚔️ 공격 벡터
stdio를 통해 연결된 LLM이 shell_exec MCP 도구에 임의의 OS 명령어를 입력하여 실행
🛡️ 대응 방법
mcp-shell을 0.6.0 이상의 버전으로 업데이트하거나 MCP_SHELL_SEC_CONFIG_FILE 환경 변수를 설정하십시오.
🔧 검증 코드
출력된 버전이 0.6.0 미만인 경우 해당 취약점에 노출된 상태입니다.
mcp-shell --version 2>/dev/null || echo 'version check required'