🇰🇷 한글 설명
Dokploy 0.29.13 미만 버전에서 sanitizeCommand 함수가 입력값의 공백과 따옴표만 제거하는 취약점이 발견되었습니다. 이로 인해 인증된 사용자가 Compose 서비스 설정을 업데이트할 때 쉘 메타문자를 주입하여 Dokploy 호스트에서 임의의 명령어를 실행할 수 있습니다.
💡 쉬운 설명
Dokploy라는 서비스를 사용하는 사람이 설정값을 바꿀 때, 악의적인 명령어를 몰래 끼워 넣어 서버 전체를 조종할 수 있는 문제입니다. 명령어를 검사하는 과정이 허술하여 발생하는 보안 구멍입니다.
🇺🇸 원문 (English)
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, sanitizeCommand in packages/server/src/utils/builders/compose.ts only trims whitespace and strips surrounding quotes from compose.command before exportEnvCommand and docker command interpolation, allowing an authenticated user who can update a Compose service to inject shell metacharacters and execute arbitrary commands on the Dokploy host. This issue is fixed in version 0.29.13.
📍 영향받는 시스템
Dokploy 0.29.13 미만 모든 버전
⚔️ 공격 벡터
인증된 사용자가 Compose 서비스의 command 필드에 쉘 메타문자를 포함한 명령어를 주입하여 공격
🛡️ 대응 방법
Dokploy를 최신 버전인 0.29.13 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 Dokploy의 버전이 0.29.13 미만인지 확인하십시오.
npm list -g dokploy | grep dokploy