🇰🇷 한글 설명
Contentful MCP Server의 특정 버전에서 export_space 및 import_space 도구가 LLM이 제어할 수 있는 인자에 네트워크 옵션을 노출하는 취약점이 발견되었습니다. 공격자는 프롬프트 인젝션 등을 통해 API 요청을 공격자의 호스트로 리다이렉트하여 관리 토큰을 탈취할 수 있습니다. 이로 인해 토큰 범위 내의 모든 Contentful 스페이스에 대한 지속적인 권한 탈취가 가능합니다.
💡 쉬운 설명
AI 도구가 데이터를 옮기는 과정에서 공격자가 지정한 가짜 주소로 데이터를 보내도록 조작될 수 있는 문제입니다. 이 과정에서 중요한 비밀번호(토큰)가 공격자에게 유출되어 계정 전체가 위험해질 수 있습니다.
🇺🇸 원문 (English)
Contentful MCP Server is a Model Context Protocol server for the Contentful Management API. Prior to @contentful/mcp-server 1.7.19 and @contentful/mcp-tools 0.4.5, export_space and import_space in packages/mcp-tools/src/tools/jobs/space-to-space-migration/exportSpace.ts and packages/mcp-tools/src/tools/jobs/space-to-space-migration/importSpace.ts expose host, proxy, rawProxy, and insecure network options to LLM-controlled tool arguments and combine those options with the server's CONTENTFUL_MANAGEMENT_TOKEN. After space_to_space_migration_handler enables the migration tools, a direct MCP call or prompt injection through attacker-controlled Contentful content can redirect Contentful Management API requests and their Authorization header to an attacker-controlled host or proxy. The regular tools that use createToolClient are unaffected because those tools pin the host from server configuration. Exposure of the personal access token permits persistent out-of-band access to every Contentful space within the token's scope. This issue is fixed in @contentful/mcp-server 1.7.19 and @contentful/mcp-tools 0.4.5.
📍 영향받는 시스템
@contentful/mcp-server < 1.7.19, @contentful/mcp-tools < 0.4.5
⚔️ 공격 벡터
프롬프트 인젝션 또는 직접적인 MCP 호출을 통한 네트워크 옵션 조작 및 API 요청 리다이렉션
🛡️ 대응 방법
@contentful/mcp-server 1.7.19 및 @contentful/mcp-tools 0.4.5 이상 버전으로 업데이트
🔧 검증 코드
출력된 버전이 mcp-server 1.7.19 미만 또는 mcp-tools 0.4.5 미만인지 확인
npm list @contentful/mcp-server @contentful/mcp-tools