hMailServerの脆弱性、データベース通信を盗聴・改ざんされるおそれ
Summary
hMailServer 6.3.4から6.3.7は、MySQLまたはMariaDBと接続しTlsMode=verify-fullを使う構成で、CA証明書ファイルが読み込まれないことがあります。このため、通信経路を握った攻撃者にデータベースとの通信を読まれたり改ざんされたりするおそれがあります。修正版の情報は確認できていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
hMailServer 6.3.4から6.3.7は、MySQLまたはMariaDBと接続しTlsMode=verify-fullを使う構成で、CA証明書ファイルが読み込まれないことがあります。このため、通信経路を握った攻撃者にデータベースとの通信を読まれたり改ざんされたりするおそれがあります。修正版の情報は確認できていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Progressive Robot LtdhMailServer |
6.3.4 – 6.3.7→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Progressive Robot hMailServer 6.3.4 through 6.3.7, with a MySQL or MariaDB database and TlsMode=verify-full, does not hand the database client the CA file that TlsCaFile names when the file's name contains a character outside ASCII on Linux, or above U+00FF on Windows, which allows an attacker who can intercept the connection to the database server to read and modify the traffic between hMailServer and its database, by presenting, with MariaDB Connector/C 3.4.2 to 3.4.10 as the client, a certificate from any authority, its own included, for any name, and otherwise a certificate for the database server's name issued by any certificate authority in the system's trust store. The server converted the name for the client with the C runtime's conversion in the C locale, which gives an empty string for such a name, and then set no CA file at all, without an error, while certificate verification stayed on, so the client - MariaDB Connector/C, bundled on Windows and the distribution's on Linux - verified the certificate of a database server over the network against the system's trust store instead of the configured CA; Connector/C 3.4.2 to 3.4.10 (bundled on Windows in 6.3.4 to 6.3.6) went further and, with no CA file, took a certificate within its dates whose issuer it could not find, for any name, with neither its chain nor its name checked and no password proof, when the server offered first a sign-in method that hashes the password, which an attacker in the middle chooses (MariaDB…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package gitlab.com
- web gitlab.com
- web gitlab.com
- web github.com