cassandra-jdbc-wrapper: Authentication Token Exposed in Logs
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| ing-bankcassandra-jdbc-wrapper | — | 記載なし |
| Mavencom.ing.data:cassandra-jdbc-wrapper |
4.16.4 未満→ 4.16.4 |
4.16.4 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
The fix for AIKIDO-2024-10565 (plaintext password logging) introduced two
redaction helpers — DriverUtil.toStringWithoutSensitiveValues() and
DriverUtil.redactSensitiveValuesInJdbcUrl() — but both helpers only redact
the "password" property/parameter (JdbcUrlUtil.TAG_PASSWORD). The equally
sensitive "token" property (JdbcUrlUtil.TAG_TOKEN), used for DataStax
Astra and other token-based Cassandra authentication, is completely unredacted
by both helpers. Applications using token-based authentication with DEBUG
logging enabled will therefore log the live authentication token in plaintext
via SessionHolder's calls to these same two helpers — the exact same
exposure pattern that the original fix was intended to prevent.
Details
File: src/main/java/com/ing/data/cassandra/jdbc/utils/DriverUtil.java
// toStringWithoutSensitiveValues (lines 341-347) -- only redacts "password"
public static String toStringWithoutSensitiveValues(final Properties properties) {
final Properties withRedactedSensitiveValues = (Properties) properties.clone();
if (withRedactedSensitiveValues.containsKey(TAG_PASSWORD)) {
withRedactedSensitiveValues.setProperty(TAG_PASSWORD, "***");
}
return withRedactedSensitiveValues.toString();
}
// redactSensitiveValuesInJdbcUrl (lines 355-378) -- only redacts "password"
final String redactedQuery = Arrays.stream(...)
.map(param -> {
if (param…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com