hMailServerにSQLインジェクションの脆弱性、遠隔から データベースの命令を改ざんされるおそれ
Summary
hMailServerの6.0.0-B1から6.2.18までで、MySQL/MariaDBまたはPostgreSQLを使う場合に、遠隔から実行されるSQL文を改ざんされるおそれがあります。認証のない送信者も、送信者宛ての自動返信などを通じて悪用できる場合があり、CVSSは8.8です。修正版の情報は確認できていないため、最新の情報を確認してください。
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.0.0-B1から6.2.18までで、MySQL/MariaDBまたはPostgreSQLを使う場合に、遠隔から実行されるSQL文を改ざんされるおそれがあります。認証のない送信者も、送信者宛ての自動返信などを通じて悪用できる場合があり、CVSSは8.8です。修正版の情報は確認できていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Progressive Robot LtdhMailServer |
6.0.0-B1 – 6.2.18→ 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.
SQL injection in the database layer of Progressive Robot hMailServer 6.0.0-B1 through 6.2.18, when the server uses MySQL/MariaDB or PostgreSQL, allows a remote attacker to alter SQL statements the server runs. On those two engines parameters are not bound: SQLStatement::GenerateFromCommand wrote each value into the statement's text as a quoted literal with a separate string replacement over the whole text per parameter, so a value holding the name of a parameter substituted after it had that name replaced, inside the value, by the later value with its own quotes, which ended the literal early and placed the later value in the statement as SQL. The row the server writes for each recipient of a queued message carries the recipient's address twice, so in the default configuration an authenticated user who may send mail reaches it by sending to an address of their choosing. A remote unauthenticated sender reaches the same statement through a message the server sends to the envelope sender, such as a delivery failure notice or an automatic reply, and, when greylisting or message indexing is enabled (both are off by default), through the greylisting record's envelope addresses or through the message metadata the server stores for IMAP SORT, which carries four header fields of a received message. An altered statement runs with the privileges of the server's database account; on PostgreSQL, whose client call runs every statement in the text it is given, further statements can follow…
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