CyberRota Analysis
AI-GeneratedMailu versions from 2.0 to 2024.06.55, along with helm-charts prior to 2.7.3, are vulnerable due to improper handling of the X-Forwarded-By header, allowing unauthenticated remote attackers to spoof proxy identities and bypass authentication. This critical vulnerability affects deployments using PROXY_AUTH_WHITELIST without a properly set REAL_IP_HEADER, posing significant risks to the integrity of mail server authentication. Organizations using Mailu in Docker environments should prioritize immediate updates to mitigate potential exploitation.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
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.