Miggo Logo

CVE-2023-30601: Apache Cassandra: Privilege escalation when enabling FQL/Audit logs

7.8

CVSS Score
3.1

Basic Information

EPSS Score
0.04643%
Published
7/6/2023
Updated
2/23/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.cassandra:cassandra-allmaven>= 4.1.0, < 4.1.24.1.2
org.apache.cassandra:cassandra-allmaven>= 4.0.0, < 4.0.104.0.10

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the lack of a security check in StorageService.enableFullQueryLogger() when processing archive commands. The patch introduced a check for 'allow_nodetool_archive_command' to prevent unauthorized command execution. The test modifications and commit diff confirm this function was the entry point for the insecure operation. The function's direct handling of user-provided archive_command parameters (via JMX/nodetool) makes it the clear vulnerability source when the configuration flag is improperly set.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

Privil*** *s**l*tion w**n *n**lin* *QL/*u*it lo*s *llows us*r wit* JMX ****ss to run *r*itr*ry *omm*n*s *s t** us*r runnin* *p**** **ss*n*r* T*is issu* *****ts *p**** **ss*n*r*: *rom *.*.* t*rou** *.*.*, *rom *.*.* t*rou** *.*.*. WORK*ROUN* T** vuln

Reasoning

T** vuln*r**ility st*ms *rom t** l**k o* * s**urity ****k in Stor***S*rvi**.*n**l**ullQu*ryLo***r() w**n pro**ssin* *r**iv* *omm*n*s. T** p*t** intro*u*** * ****k *or '*llow_no**tool_*r**iv*_*omm*n*' to pr*v*nt un*ut*oriz** *omm*n* *x**ution. T** t*s