🇰🇷 한글 설명
Coolify의 buildHelperImage 메서드에서 dev_helper_version 필드를 처리할 때 셸 이스케이프 처리가 누락되어 발생합니다. 공격자가 헬퍼 버전을 설정하고 빌드를 트리거할 수 있는 개발 환경에서 서버에 임의의 명령어를 실행할 수 있습니다.
💡 쉬운 설명
프로그램이 명령어를 만들 때 입력값을 제대로 검사하지 않아 발생하는 보안 약점입니다. 나쁜 의도를 가진 사람이 특수한 문자를 입력하면 서버가 공격자의 명령을 그대로 실행하게 됩니다.
🇺🇸 원문 (English)
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.474, the buildHelperImage method in app/Livewire/Settings/Index.php constructs a Docker build command using the dev_helper_version field without shell escaping, allowing an attacker who can set the helper version and trigger the helper image build in a development environment to execute arbitrary commands on the server. This issue is fixed in version 4.0.0-beta.474.
📍 영향받는 시스템
Coolify 4.0.0-beta.474 미만 버전
⚔️ 공격 벡터
개발 환경에서 dev_helper_version 필드에 셸 메타문자를 삽입하여 명령 실행
🛡️ 대응 방법
Coolify를 4.0.0-beta.474 이상의 버전으로 업데이트하십시오.
🔧 검증 코드
출력 결과에 4.0.0-beta.474 이상의 버전 정보가 포함되어 있는지 확인하십시오.
curl -s http://<your-coolify-instance>/version | grep -E '4.0.0-beta.474'