🇰🇷 한글 설명
@zereight/mcp-gitlab의 2.1.27 미만 버전에서 SSE 전송 모드 사용 시 인증 없이 모든 MCP 도구가 노출되는 취약점이 존재합니다. 특히 upload_markdown 도구의 file_path 매개변수가 검증되지 않아 서버의 임의 파일을 읽을 수 있으며, 이를 통해 GitLab 개인 액세스 토큰을 탈취하여 계정을 완전히 장악할 수 있습니다.
💡 쉬운 설명
인터넷에 연결된 GitLab 도구가 아무런 비밀번호 확인 없이 작동하여, 해커가 서버 내부의 중요한 비밀번호 파일을 몰래 가져갈 수 있는 문제입니다. 이로 인해 해커가 사용자의 GitLab 계정을 통째로 뺏을 수 있습니다.
🇺🇸 원문 (English)
`@zereight/mcp-gitlab` is a Model Context Protocol server for GitLab. Prior to version 2.1.27, the SSE transport mode (`SSE=true`) exposes all MCP tools without any authentication. The `upload_markdown` tool reads arbitrary files from the server's local filesystem via an unsanitized `file_path` parameter and uploads them to a GitLab project. Combined, any unauthenticated network-reachable attacker can read `/proc/self/environ` to steal the server's `GITLAB_PERSONAL_ACCESS_TOKEN` and achieve full GitLab account takeover. This is the default configuration for Docker deployments. Version 2.1.27 contains a patch.
📍 영향받는 시스템
@zereight/mcp-gitlab version < 2.1.27 (SSE=true 설정 시)
⚔️ 공격 벡터
인증되지 않은 공격자가 네트워크를 통해 임의의 파일 경로를 입력하여 서버의 환경 변수 및 토큰 탈취
🛡️ 대응 방법
해당 패키지를 버전 2.1.27 이상으로 업데이트하거나 SSE 모드 사용 시 인증 설정을 강화하십시오.
🔧 검증 코드
출력된 버전이 2.1.27 미만이면 취약한 상태입니다.
npm list @zereight/mcp-gitlab