Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-104659 Overview
CVE-2026-104659 affects the REST API listener in Progressive Robot hMailServer versions 6.0.0 through 6.3.5. The listener fails to validate the HTTP Host header and does not throttle or auto-ban failed administrator sign-ins from the loopback interface. A remote attacker can abuse a DNS rebinding attack against a browser running on the mail server to brute-force the administrator password at full speed. Successful exploitation grants complete administrative control of the mail server. The vulnerability is tracked under CWE-346: Origin Validation Error.
Critical Impact
Successful exploitation gives an attacker full administrative control of the hMailServer instance, including mailbox access, routing changes, and account creation.
Affected Products
- Progressive Robot hMailServer 6.0.0 through 6.3.5
- hMailServer REST API listener (disabled by default, bound to loopback when enabled)
- Fixed in hMailServer 6.3.6
Discovery Timeline
- 2026-10-08 - CVE-2026-104659 published to NVD
- 2026-10-08 - Last updated in NVD database
- Patch release - hMailServer 6.3.6 published on GitLab containing the fix
Technical Details for CVE-2026-104659
Vulnerability Analysis
The REST API listener in hMailServer 6 answers HTTP requests regardless of the value of the Host header. When enabled, the listener binds to 127.0.0.1 and expects only local traffic. Because origin validation is missing, a browser running on the server can be tricked into sending authenticated requests to the loopback listener from an attacker-controlled web page. Compounding the issue, failed administrator sign-ins from the loopback interface are neither delayed nor auto-banned. The attacker can submit password guesses continuously until one succeeds, with no rate limit enforced by the listener.
Root Cause
Two defects combine to enable the attack. First, the REST API listener accepts any Host header value, violating the origin assumptions that normally protect loopback-bound services from cross-origin browser requests. Second, the authentication path lacks throttling and lockout on repeated failed credentials from the loopback. Together they create a classic DNS rebinding attack surface against a service designed to be local-only.
Attack Vector
The attacker hosts a web page under a domain whose DNS record is rebind-friendly (short TTL, dual-answer). A user on the mail server opens the page in a browser running on the host. After the initial resolution, the attacker's DNS server responds with 127.0.0.1, causing subsequent browser fetches to the attacker's hostname to reach the hMailServer REST API listener. Because the listener ignores the Host header and returns responses the browser can read, the attacker can submit password guesses programmatically and iterate at full speed until authentication succeeds.
No proof-of-concept code has been published. For technical details, refer to GitLab hMailServer Work Item #57.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-104659
Indicators of Compromise
- High-volume POST requests to the REST API authentication endpoint originating from 127.0.0.1 within short time windows.
- REST API log entries showing repeated failed administrator sign-ins followed by a successful one from the loopback interface.
- Browser or proxy logs on the mail server host showing outbound requests to unfamiliar external domains that then resolve to 127.0.0.1.
- Unexpected administrator-level configuration changes in hMailServer, such as new accounts, forwarding rules, or domain additions.
Detection Strategies
- Correlate hMailServer administrative actions with the source IP and session timing to flag bursts of failed logins preceding configuration changes.
- Inspect HTTP access logs for the REST API listener and alert on requests whose Host header does not match an allow-list of expected values.
- Monitor DNS resolver logs for domains that return both public and private (RFC 1918 or loopback) addresses in short succession, which is characteristic of DNS rebinding.
Monitoring Recommendations
- Forward hMailServer REST API and authentication logs to a centralized logging platform for retention and analysis.
- Alert on any administrator authentication attempts originating from the loopback when the REST API feature is not expected to be in active use.
- Track process-level network activity on the mail server host to identify browser or scripted clients connecting to 127.0.0.1 on the REST API port.
How to Mitigate CVE-2026-104659
Immediate Actions Required
- Upgrade hMailServer to version 6.3.6 or later, available from GitLab hMailServer Release v6.3.6.
- Disable the REST API listener on any host where it is not required; the feature is off by default.
- Avoid browsing untrusted websites from the server console or from hosts where the REST API listener is reachable on loopback.
- Rotate the hMailServer administrator password after upgrading, especially if browsing activity on the server cannot be audited.
Patch Information
Progressive Robot addressed the issue in hMailServer 6.3.6. The release validates the Host header on the REST API listener and introduces throttling for failed administrator sign-ins. Release notes and source changes are published at GitLab hMailServer Release v6.3.6 and tracked in Work Item #57.
Workarounds
- Keep the REST API listener disabled unless an operational need exists.
- Restrict outbound DNS resolution on the mail server to a trusted internal resolver that filters responses pointing to loopback or private address space (DNS rebinding protection).
- Enforce host-based firewall rules that limit access to the REST API port to specific administrative tooling rather than any process on the host.
- Do not use interactive browsers on the mail server host; perform administration from a separate workstation reaching the server through authenticated, origin-validated channels.
# Configuration example: verify installed version and disable REST API if not needed
# Check installed hMailServer version on Windows
reg query "HKLM\SOFTWARE\hMailServer" /v Version
# Block external resolution to loopback at the host firewall (example, Windows)
netsh advfirewall firewall add rule name="Block hMailServer REST from non-admin tools" ^
dir=in action=block protocol=TCP localport=<rest_api_port> remoteip=127.0.0.1
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

