(Tech Story) Apache Kylin 3.0.1 Command Injection Vulnerability
An authenticated user with MANAGEMENT or ADMIN permissions could inject arbitrary OS commands through the project name or configuration settings during Cube migration, leading to full compromise of the host system. The vulnerability affected Apache Kylin versions 2.3.0 through 2.6.5 and 3.0.1.
community.sonarsource.com
Published on community.sonarsource.com
security, java
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The project name from the URL and configuration settings are concatenated unsanitised into a system command string that is executed by the server.
Impact
An attacker with the required permissions could execute arbitrary OS commands on the targeted web server and fully compromise the system and its data.
What the attacker needed
Authenticated user; MANAGEMENT or ADMIN permissions on a project
The fix
The vulnerability was fixed in Apache Kylin 3.0.2 and 2.6.6 by validating user-controlled inputs with an allowlist before they are used in system commands; alternatively, administrators can disable Cube migrations.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a command injection bug: the application takes a value from the user (here, a project name in a web request) and pastes it directly into a command that the operating system will run. Because special characters in that value are not cleaned, an attacker can add their own commands, which then run on the server with the application's privileges. The attacker needs to be logged in with high permissions, but once they are, they can take over the whole machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.