hMailServerに証明書検証を回避される脆弱性、データベース通信が盗聴・改ざんされるおそれ
Summary
hMailServer 6.2.25から6.3.7までのWindows版で、PostgreSQLとの接続時に信頼する認証局の証明書ファイルを取り違える脆弱性が見つかりました。ローカルの攻撃者が悪意のある証明書を信頼させ、データベースとの通信やデータベースのパスワードを読み取り、改ざんするおそれがあります。修正版の情報は現時点では確認できていないため、最新の情報を確認してください。
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.2.25から6.3.7までのWindows版で、PostgreSQLとの接続時に信頼する認証局の証明書ファイルを取り違える脆弱性が見つかりました。ローカルの攻撃者が悪意のある証明書を信頼させ、データベースとの通信やデータベースのパスワードを読み取り、改ざんするおそれがあります。修正版の情報は現時点では確認できていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Progressive Robot LtdhMailServer |
6.2.25 – 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.2.25 through 6.3.7 on Windows, with a PostgreSQL database, the connection's sslmode require, verify-ca or verify-full, and a root certificate file named by PostgreSQLSslRootCert (from 6.2.25) or, with TlsMode=verify-full and neither PostgreSQL key set, by TlsCaFile (from 6.3.4), hands the file's name to libpq as bytes in the system's ANSI code page (up to 6.3.5 as Latin-1 bytes, which on code page 1252 are the code page's own for U+00A0 to U+00FF), and libpq looks for the file by those bytes and then hands the same bytes to OpenSSL, whose file opening on Windows reads a name as UTF-8 first and opens the file at that reading when one is there. When every byte of the name outside ASCII also reads as UTF-8 - for example U+00C3 U+00A9, the bytes C3 A9 on code page 1252, which are U+00E9 in UTF-8 - the database server's certificate was checked against the file at that other name whenever one was there, which allows a local attacker who can create that file but cannot change the configured one, as any user can by default beside a file an administrator keeps under ProgramData, or beside a folder directly under the system drive's root whose permissions the administrator restricted, and who can intercept the connection to the database server or stand in for it, to have hMailServer trust a certificate authority of the attacker's own and read and modify the traffic between hMailServer and its database, the database password included; the file alone, holdi…
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