Skip to main content
Vulnerability Database/CVE-2026-114470

CVE-2026-114470: hMailServer REST API CSRF Vulnerability

CVE-2026-114470 is a cross-site request forgery flaw in Progressive Robot hMailServer REST API versions 6.0.0 through 6.3.6 that exploits HTTP Basic authentication caching in browsers. This article covers technical details, affected versions, impact, and mitigation strategies.

Published:

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-114470 Overview

CVE-2026-114470 is a Cross-Site Request Forgery (CSRF) vulnerability [CWE-352] affecting the REST API in Progressive Robot hMailServer versions 6.0.0 through 6.3.6. The REST API accepts HTTP Basic authentication and prompts browsers with a Basic sign-in dialog. Once a user completes that dialog, the browser caches the credential and automatically attaches it to subsequent requests to that origin, including cross-site form submissions. The server's cross-site protection applied only to cookie sessions, leaving HTTP Basic authentication unprotected. An attacker-controlled page can trigger state-changing API calls using an administrator's cached credentials.

Critical Impact

A blind CSRF against an authenticated hMailServer administrator can create domains, accounts, or API keys and modify server settings using the victim's credentials.

Affected Products

  • Progressive Robot hMailServer 6.0.0 through 6.3.6
  • hMailServer REST API component
  • Administrative interfaces exposed through HTTP Basic authentication

Discovery Timeline

  • 2026-10-21 - CVE-2026-114470 published to NVD
  • 2026-10-22 - Last updated in NVD database
  • Fix release - hMailServer version 6.3.7 released on GitLab

Technical Details for CVE-2026-114470

Vulnerability Analysis

The REST API authenticates requests using HTTP Basic authentication and responds with a WWW-Authenticate: Basic challenge when credentials are missing. Browsers cache the credentials after the user completes the Basic sign-in dialog. The browser then transmits those credentials with any subsequent request to the same origin, including requests initiated by cross-origin form submissions.

The server's CSRF defense covered only cookie-based sessions. Cookie sessions were protected by SameSite=Strict and by a custom header that cross-site forms cannot set. HTTP Basic authentication bypassed both controls. The server also reads the request body regardless of the declared Content-Type, so a form-encoded POST can carry JSON or other payloads expected by the API.

Root Cause

The root cause is incomplete CSRF protection scope. The developers applied anti-CSRF controls to the cookie session path but did not extend equivalent protection to requests authenticated via HTTP Basic. Combined with permissive body parsing, this allows a cross-origin form to deliver API payloads that the server executes with the victim's privileges.

Attack Vector

An attacker hosts a page that submits a top-level form POST to the hMailServer REST API endpoint. A victim with a cached Basic credential for the API, typically an administrator who previously signed in through the browser dialog, visits the attacker page. The browser attaches the cached credential to the forged request. The server processes the state-changing operation such as creating an account, generating an API key, or altering a configuration setting. The attacker cannot read the cross-origin response, so this is a blind CSRF; exploitation requires user interaction and some social engineering to lure the victim to the attacker page.

See the GitLab hMailServer Work Item #93 for the upstream technical discussion.

Detection Methods for CVE-2026-114470

Indicators of Compromise

  • Unexpected domain, account, or alias creation events in hMailServer administrative logs
  • New API keys generated outside of change-management windows
  • REST API requests with Authorization: Basic headers that carry a cross-site Origin or Referer value
  • Configuration changes correlated with administrator web browsing activity rather than direct admin console use

Detection Strategies

  • Review web server and reverse proxy logs for POST requests to REST API endpoints where the Referer or Origin header points to an untrusted domain.
  • Alert on administrative state changes that lack a matching session from the admin console origin.
  • Correlate account creation and API key issuance events with the authenticated identity and client workflow.

Monitoring Recommendations

  • Forward hMailServer administrative audit logs to a centralized logging platform for retention and correlation.
  • Monitor outbound administrator browsing on hosts that also hold cached Basic credentials for the hMailServer REST API.
  • Track creation of API keys, domains, and privileged accounts as high-priority events.

How to Mitigate CVE-2026-114470

Immediate Actions Required

  • Upgrade hMailServer to version 6.3.7 or later, which addresses the CSRF scope gap.
  • Instruct administrators to close browser sessions and clear cached HTTP Basic credentials after using the REST API.
  • Restrict network access to the REST API to trusted management networks via firewall or reverse proxy ACLs.
  • Audit recent administrative changes, API keys, accounts, and domains created since deployment of affected versions.

Patch Information

The maintainers released the fix in the hMailServer v6.3.7 release on GitLab. Operators running versions 6.0.0 through 6.3.6 should upgrade. Technical context for the fix is available in GitLab Work Item #93.

Workarounds

  • Place the REST API behind a reverse proxy that requires an additional authentication factor not cached by browsers, such as a client certificate or an opaque bearer token.
  • Block cross-origin requests at the reverse proxy by rejecting requests whose Origin or Referer header does not match the expected administrative origin.
  • Disable HTTP Basic authentication on the REST API endpoint and require token-based authentication from a dedicated management client.
  • Isolate administrator browser sessions used for hMailServer management from general web browsing.
bash
# Example reverse proxy rule to block cross-origin REST API submissions
# nginx snippet - adapt to your deployment
location /api/ {
    if ($http_origin !~* ^https://admin\.example\.com$) {
        return 403;
    }
    proxy_pass http://hmailserver_backend;
}

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.