🇰🇷 한글 설명
mailcow: dockerized의 2024-04 이전 버전에서 경로 탐색 및 임의 코드 실행 취약점이 발견되었습니다. 인증된 관리자가 rspamd_maps() 함수의 부적절한 경로 검증을 악용하여 www-data 사용자가 쓸 수 있는 모든 파일을 덮어쓰고 서버에서 임의의 명령을 실행할 수 있습니다.
💡 쉬운 설명
관리자 권한을 가진 사용자가 시스템의 파일 경로를 조작하여 서버에 허가되지 않은 명령을 내릴 수 있는 보안 결함입니다. 이로 인해 공격자가 서버의 제어권을 완전히 장악할 위험이 있습니다.
🇺🇸 원문 (English)
mailcow: dockerized is an open source groupware/email suite based on docker. A security vulnerability has been identified in mailcow affecting versions prior to 2024-04. This vulnerability is a combination of path traversal and arbitrary code execution, specifically targeting the `rspamd_maps()` function. It allows authenticated admin users to overwrite any file writable by the www-data user by exploiting improper path validation. The exploit chain can lead to the execution of arbitrary commands on the server. Version 2024-04 contains a patch for the issue.
📍 영향받는 시스템
mailcow: dockerized versions prior to 2024-04
⚔️ 공격 벡터
인증된 관리자가 경로 탐색(Path Traversal)을 통해 rspamd_maps() 함수를 악용하여 파일 덮어쓰기 및 코드 실행
🛡️ 대응 방법
mailcow: dockerized를 2024-04 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 정보가 2024-04 미만인지 확인하여 취약 여부를 판단합니다.
docker exec $(docker ps -qf "name=mailcow-dockerized") cat /opt/mailcow-dockerized/version 2>/dev/null || echo "Version check failed"