🇰🇷 한글 설명
Mailu 메일 서버에서 PROXY_AUTH_WHITELIST가 설정되어 있지만 REAL_IP_HEADER가 설정되지 않은 경우, 클라이언트가 제어하는 X-Forwarded-By 헤더를 신뢰하는 취약점이 발견되었습니다. 공격자는 이 헤더를 조작하여 신뢰할 수 있는 프록시로 위장함으로써 인증을 우회할 수 있습니다.
💡 쉬운 설명
메일 서버가 접속자의 신원을 확인하는 과정에서, 공격자가 가짜 신분증(헤더)을 내밀어도 이를 검증 없이 그대로 믿어버리는 문제입니다. 이를 통해 공격자는 로그인 없이도 서버의 권한을 탈취할 수 있습니다.
🇺🇸 원문 (English)
Mailu is a mail server distributed as a set of Docker images. From Mailu 2.0 until 2024.06.55 and prior to Mailu helm-charts 2.7.3, deployments with PROXY_AUTH_WHITELIST configured but REAL_IP_HEADER unset trusted a client-controlled X-Forwarded-By header for header-based proxy authentication. The proxy_hide_header directive in the nginx template at core/nginx/conf/proxy.conf hid the header from upstream responses but did not overwrite the incoming request value in this configuration. An unauthenticated remote attacker could therefore spoof the trusted proxy identity and bypass authentication. This issue is fixed in Mailu 2024.06.55 and Mailu helm-charts 2.7.3.
📍 영향받는 시스템
Mailu 2.0 ~ 2024.06.55 미만 버전 및 Mailu helm-charts 2.7.3 미만 버전
⚔️ 공격 벡터
조작된 X-Forwarded-By HTTP 헤더를 전송하여 인증 우회
🛡️ 대응 방법
Mailu를 2024.06.55 버전 이상으로 업데이트하거나 Mailu helm-charts를 2.7.3 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 Mailu 이미지의 태그 버전이 2024.06.55 미만인지 확인하십시오.
docker images | grep mailu