VulnWatch by ve1ve2
medium 5.5 EPSS 0.24%

GHSA-jc42-994r-vvwp: cassandra-jdbc-wrapper: Authentication Token Exposed in Logs

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
com.ing.data:cassandra-jdbc-wrapper

https://osv.dev/vulnerability/GHSA-jc42-994r-vvwp ↗

osvmavenfix-available

cassandra-jdbc-wrapper: Authentication Token Exposed in Logs ### Summary The fix for [AIKIDO-2024-10565](https://intel.aikido.dev/cve/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` ```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.startsWith(TAG_PASSWORD + "=")) { return TAG_PASSWORD + "=***"; } return param; // <-- "token=..." passes through unmodified }) ... ``` `JdbcUrlUtil.java` defines `TAG_TOKEN = "token"` (line 407) as a separate, distinct connection property used when connecting with DataStax Astra-style token-based authentication. Neither redaction helper checks for this key. **File:** `src/main/java/com/ing/data/cassandra/jdbc/SessionHolder.java` Both helpers are called on connection-level properties at DEBUG log level: ```java // Line 150 — logs all connection properties including "token" unredacted log.debug("Final Properties to Connection: {}", toStringWithoutSensitiveValues(this.properties)); // Lines 173, 190 — logs JDBC URL including "?token=..." unredacted final String jdbcUrl = redactSensitiveValuesInJdbcUrl(this.cacheKey.get(URL_KEY)); log.debug("Released last reference to {}, closing Session.", jdbcUrl); log.debug("Acquired reference to {}, new count = {}.", jdbcUrl, ref + 1); ``` DEBUG logging is commonly enabled in production troubleshooting and staging environments, meaning the token is logged in plain text every time a connection is acquired or released in such environments. ### PoC **Environment:** JDK 17+, Maven 3.x **pom.xml dependency:** ```xml com.ing.data cassandra-jdbc-wrapper 5.0.1 ``` **Exploit.java:** ```java import Affected: Maven:com.ing.data:cassandra-jdbc-wrapper Fixed in: 5.0.2, 4.16.4 References: https://github.com/ing-bank/cassandra-jdbc-wrapper/security/advisories/GHSA-jc42-994r-vvwp https://nvd.nist.gov/vuln/detail/CVE-2026-73504 https://github.com/ing-bank/cassandra-jdbc-wrapper/commit/0b7ea0322e538304119f58f1214e4171312b245b https://github.com/ing-bank/cassandra-jdbc-wrapper/commit/ace58f7cf5c981d8dfe302f1a514ae4c6f827f38 https://github.com/ing-bank/cassandra-jdbc-wrapper https://github.com/ing-bank/cassandra-jdbc-wrapper/releases/tag/v4.16.4 https://github.com/ing-bank/cassandra-jdbc-wrapper/releases/tag/v5.0.2

Linked vulnerabilities (2)

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

cassandra-jdbc-wrapper: Authentication Token Exposed in Logs

CWE: CWE-532Aliases: CVE-2026-73504
CVE-2026-73504 medium 5.5 EPSS 0.24% (p15) NVDCVE.orgGHSA
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

cassandra-jdbc-wrapper: Authentication Token Exposed in Logs

CWE: CWE-532Aliases: GHSA-jc42-994r-vvwpNVD: Received

Also reported by (1)