Apache Druid includes the ability to execute user-provided JavaScript code embedded in various types of requests; however, that feature is disabled by default. In Druid versions prior to `0.20.1`, an authenticated user can send a specially-crafted request that both enables the JavaScript code-execution feature and executes the supplied code all at once, allowing for code execution on the server with the privileges of the Druid Server process. More critically, authentication is not enabled in Apache Druid by default. Tested on the following Apache Druid versions: * 0.15.1 * 0.16.0-iap8 * 0.17.1 * 0.18.0-iap3 * 0.19.0-iap7 * 0.20.0-iap4.1 * 0.20.0 * 0.21.0-iap3
Vulnerability
CVE-2021-25646
Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.
Vulnerability details
- Score
- 8.8
- Severity
- high
CVSS 3.1 · NVD
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDescription
Apache Druid includes the ability to execute user-provided JavaScript code embedded in various types of requests. This functionality is intended for use in high-trust environments, and is disabled by default. However, in Druid 0.20.0 and earlier, it is possible for an authenticated user to send a specially-crafted request that forces Druid to run user-provided JavaScript code for that request, regardless of server configuration. This can be leveraged to execute code on the target machine with the privileges of the Druid server process.
CVE ProgramExploit source choices
17 sources一个开源的、开箱即用的漏洞批量验证框架
中文漏洞知识库,整理 Web、中间件、网络设备与系统漏洞的原理和公开复现资料,支持按产品、CVE、指纹检索。Chinese vulnerability knowledge base.
vulcat可用于扫描Web端常见的CVE、CNVD等编号的漏洞,发现漏洞时会返回Payload信息。部分漏洞还支持命令行交互模式,可以持续利用漏洞
essential templates for kenzer [DEPRECATED]
Apache Druid 远程代码执行;检测脚本
cvedb/awesome-cve-repo source repository
Apache Druid remote code execution vulnerability - Apache Druid 远程代码执行漏洞利用 CVE-2021-25646
CVE-2021-25646 Apache Druid 远程代码执行 漏洞检测和利用工具
基于Pocsuite3编写的Poc&Exp
cvedb/top source repository
12442rf/poc source repository
Python Utilities Rewritten in Go and Enhanced
CSharp CVE-2021-25646-GUI
A proof-of-concept for the CVE-2021-25646, which allows for Command Injection
Vulhub apache-druid/CVE-2021-25646: Apache Druid Embedded JavaScript RCE (CVE-2021-25646), run with Isoloom
Generated personal blog