🇰🇷 한글 설명
mailcow: dockerized의 예외 처리 메커니즘에서 보안 취약점이 발견되었습니다. DEV_MODE가 아닌 환경에서 예외 세부 정보가 적절한 검증 없이 세션에 저장되고 HTML로 렌더링되어, 관리자 패널에서 교차 사이트 스크립팅(XSS) 공격이 가능합니다. 공격자는 이를 통해 세션을 탈취하거나 관리자 권한으로 악의적인 동작을 수행할 수 있습니다.
💡 쉬운 설명
시스템 오류가 발생했을 때 보여주는 메시지에 악성 코드를 숨겨서 관리자의 브라우저에서 실행시키는 공격입니다. 이를 통해 해커가 관리자의 계정을 훔치거나 설정을 마음대로 바꿀 수 있습니다.
🇺🇸 원문 (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 resides in the exception handling mechanism, specifically when not operating in DEV_MODE. The system saves exception details into a session array without proper sanitization or encoding. These details are later rendered into HTML and executed in a JavaScript block within the user's browser, without adequate escaping of HTML entities. This flaw allows for Cross-Site Scripting (XSS) attacks, where attackers can inject malicious scripts into the admin panel by triggering exceptions with controlled input. The exploitation method involves using any function that might throw an exception with user-controllable argument. This issue can lead to session hijacking and unauthorized administrative actions, posing a significant security risk. Version 2024-04 contains a fix for the issue.
📍 영향받는 시스템
mailcow: dockerized versions prior to 2024-04
⚔️ 공격 벡터
사용자 제어가 가능한 인자를 통해 예외를 발생시켜 관리자 패널에 악성 스크립트를 주입하는 방식
🛡️ 대응 방법
mailcow: dockerized를 버전 2024-04 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 '2024-04' 이상의 버전 정보가 출력되면 취약점이 해결된 상태입니다.
docker exec $(docker ps -qf name=mailcow-dockerized) cat /opt/mailcow-dockerized/version | grep -E '2024-04'