🇰🇷 한글 설명
MCP Context Forge의 python_sandbox_server에서 발생하는 취약점으로, 안전하지 않은 속성 접근 제어 결함으로 인해 발생합니다. 공격자는 런타임에 특수 속성 이름을 생성하여 Python 클래스 계층 구조를 탐색하고 subprocess.Popen에 접근할 수 있습니다. 이를 통해 서버 프로세스 권한으로 OS 명령어를 실행할 수 있는 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
AI 서버의 코드 실행 기능에 보안 구멍이 있어, 해커가 특수한 명령어를 보내 컴퓨터를 마음대로 조종할 수 있는 상태입니다. 마치 잠금장치가 허술한 문을 통해 해커가 집 안으로 들어와 명령을 내리는 것과 같습니다.
🇺🇸 원문 (English)
MCP Context Forge is an AI gateway, registry, and proxy for MCP, A2A, REST, and gRPC APIs. Prior to 1.0.2, the python_sandbox_server in mcp-servers/python/python_sandbox_server/src/python_sandbox_server/server_fastmcp.py exposes raw getattr through safe_builtins, omits a required _getattr_ guard, and relies on validate_code checks for literal dangerous dunder strings. An attacker can construct dunder names at runtime, traverse the Python class hierarchy, reach subprocess.Popen, and execute OS commands with the server process privileges through the execute_code MCP tool. The HTTP/SSE transport can expose this tool without authentication, while stdio-only deployments have reduced network reachability. The issue affects the python_sandbox_server subproject and does not directly affect the core Context Forge gateway or proxy components. This issue is fixed in version 1.0.2.
📍 영향받는 시스템
MCP Context Forge python_sandbox_server (version 1.0.2 미만)
⚔️ 공격 벡터
인증되지 않은 HTTP/SSE 전송을 통해 execute_code 도구로 조작된 dunder 속성 명령어를 전달하여 공격
🛡️ 대응 방법
MCP Context Forge를 버전 1.0.2 이상으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.0.2 미만이면 취약한 상태이며, 1.0.2 이상이면 안전합니다.
pip show mcp-context-forge 2>/dev/null | grep -E 'Version'