🇰🇷 한글 설명
Zuke는 Deno용 코드 우선, 강타입 빌드 자동화 시스템입니다. 1.51.0 이전 버전의 @zuke/core MCP 레지스트리 모드는 원격 모듈 디스크립터에 적용되는 ZUKE_REGISTRY_LAUNCH_HOSTS 인가 검사를 명령형 레지스트리 디스크립터에는 적용하지 않습니다. 이로 인해 다른 주체가 쓸 수 있는 레지스트리를 읽는 경우 레지스트리 작성자가 운영자의 환경과 작업공간 권한으로 실행될 프로그램과 인자를 임의로 지정할 수 있습니다.
💡 쉬운 설명
빌드 도구가 외부 또는 다른 사람이 수정할 수 있는 등록 목록을 읽을 때, 그 목록을 만든 사람이 내 컴퓨터에서 원하는 프로그램을 실행시킬 수 있습니다. 1.51.0 버전에서 이 문제가 수정되었습니다.
🇺🇸 원문 (English)
Zuke is a code-first, strongly typed build automation system for Deno. Prior to 1.51.0, the @zuke/core MCP registry mode accepts command-form registry descriptors without applying the ZUKE_REGISTRY_LAUNCH_HOSTS authorization enforced for remote module descriptors. When zuke mcp --registry --allow-run reads a registry writable by another party and a run-capable caller invokes the affected tool, the registry writer can choose the program and arguments executed with the operator's environment and workspace access. The --allow-run and --protect name globs do not contain the issue because the descriptor supplies those names, and the optional destructive confirmation displays a description controlled by the same writer. The local default registry populated only through zuke register is not affected because that command writes module-form descriptors. This issue is fixed in version 1.51.0.
📍 영향받는 시스템
@zuke/core 1.51.0 미만 버전 (MCP 레지스트리 모드, zuke mcp --registry --allow-run 사용 환경)
⚔️ 공격 벡터
쓰기 권한이 있는 공격자가 레지스트리에 명령형 디스크립터를 등록하고, 실행 권한이 있는 호출자가 해당 도구를 호출하면 임의 프로그램이 운영자 권한으로 실행됨
🛡️ 대응 방법
@zuke/core를 1.51.0 이상으로 업그레이드하고, 신뢰할 수 없는 쓰기 가능 레지스트리 사용을 피하십시오.
🔧 검증 코드
출력된 버전이 1.51.0 이상이면 수정된 버전이며, 1.51.0 미만이면 취약한 버전이므로 업그레이드가 필요합니다. 아무 결과도 나오지 않으면 설치 위치를 직접 확인해야 합니다.
deno info npm:@zuke/core 2>/dev/null | grep -i version || npm ls @zuke/core 2>/dev/null