🇰🇷 한글 설명
Coolify의 executeInDocker() 헬퍼 함수가 사용자 제어 명령어를 작은따옴표로 감쌀 때 내부의 작은따옴표를 제대로 이스케이프하지 못하는 취약점입니다. 공격자가 애플리케이션 설정을 수정할 수 있다면, 특정 명령 필드에 작은따옴표를 주입하여 인용구를 탈출하고 관리 서버 호스트에서 임의의 명령을 실행할 수 있습니다.
💡 쉬운 설명
프로그램이 명령어를 실행할 때 입력값을 안전하게 감싸지 못해 발생하는 보안 구멍입니다. 해커가 특수 문자를 이용해 원래 의도된 범위를 벗어나 서버 전체를 조종할 수 있습니다.
🇺🇸 원문 (English)
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.469, the executeInDocker() helper wraps user-controlled commands in single quotes without escaping embedded single quotes. Attackers who can edit application settings can inject a single quote into docker_compose_custom_build_command or docker_compose_custom_start_command to break out of the quoted context and execute arbitrary commands on the managed server host during deployments, escaping the intended Docker container confinement. This issue is fixed in version 4.0.0-beta.469.
📍 영향받는 시스템
Coolify 4.0.0-beta.469 미만 버전
⚔️ 공격 벡터
애플리케이션 설정 내 docker_compose_custom_build_command 또는 docker_compose_custom_start_command 필드에 작은따옴표를 주입하여 명령 실행
🛡️ 대응 방법
Coolify를 4.0.0-beta.469 이상의 버전으로 업데이트하십시오.
🔧 검증 코드
출력 결과에 4.0.0-beta.469 이상의 버전 정보가 포함되어 있는지 확인하십시오.
curl -s http://<coolify-host>/api/version | grep -E '4\.0\.0-beta\.469'