CVE-2024-56529

7.1 HIGH

📋 TL;DR

Mailcow email server has a session fixation vulnerability where attackers can set session cookies on victim browsers when HSTS is disabled. After victims log in, attackers can hijack their authenticated sessions to access the web panel. This affects all Mailcow installations up to version 2024-11b.

💻 Affected Systems

Products:
  • mailcow-dockerized
Versions: All versions through 2024-11b
Operating Systems: Any OS running mailcow-dockerized
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability requires HSTS to be disabled on victim's browser for successful exploitation.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of mail server administration panel leading to email system takeover, data exfiltration, and further network compromise.

🟠

Likely Case

Unauthorized access to email administration panel allowing email account manipulation, configuration changes, and potential data access.

🟢

If Mitigated

Limited impact with proper HSTS enabled and session management controls in place.

🌐 Internet-Facing: HIGH - Web panel is typically internet-facing for administration, making exploitation straightforward.
🏢 Internal Only: MEDIUM - Internal attackers could exploit if they can intercept or manipulate session cookies.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires attacker to set session cookie before victim logs in and HSTS disabled on browser.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2024-11c and later

Vendor Advisory: https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-23c8-4wwr-g3c6

Restart Required: No

Instructions:

1. Update mailcow-dockerized to version 2024-11c or later. 2. Run ./update.sh from mailcow directory. 3. Verify update completed successfully.

🔧 Temporary Workarounds

Enable HSTS Enforcement

all

Force HTTPS and prevent session cookie manipulation by enabling HSTS headers

Add 'Strict-Transport-Security: max-age=31536000; includeSubDomains' to web server headers

Session Regeneration on Login

all

Implement custom session regeneration after successful authentication

🧯 If You Can't Patch

  • Enable HSTS headers on web server and force HTTPS connections
  • Implement additional authentication factors and monitor for suspicious admin panel access

🔍 How to Verify

Check if Vulnerable:

Check mailcow version with: grep MAILCOW_VERSION mailcow.conf | cut -d'=' -f2

Check Version:

grep MAILCOW_VERSION mailcow.conf | cut -d'=' -f2

Verify Fix Applied:

Verify version is 2024-11c or later and check that session cookies are regenerated after login

📡 Detection & Monitoring

Log Indicators:

  • Multiple admin logins from different IPs with same session ID
  • Admin panel access from unexpected locations

Network Indicators:

  • HTTP requests with manipulated session cookies
  • Unusual admin panel access patterns

SIEM Query:

source="mailcow" action="login" | stats count by session_id | where count > 1

🔗 References

📤 Share & Export