# 经过身份验证的用户可以在其请求中覆盖系统配置,从而可以执行任意代码。
## 漏洞概述
Apache Druid 允许执行嵌入在各种类型请求中的用户提供的 JavaScript 代码,该功能默认是禁用的,且主要用于高信任环境。但是在 Druid 0.20.0 及更早版本中,认证用户可以通过特制的请求强制 Druid 执行用户提供的 JavaScript 代码,这点不受服务器配置的影响。这可能导致使用 Druid 服务器进程权限在目标机器上执行任意代码。
## 影响版本
- Apache Druid 0.20.0 及更早版本
## 漏洞细节
在受影响的版本中,即使默认配置禁用了该功能,认证用户仍能通过发送特制的请求来强制 Druid 执行用户提供的 JavaScript 代码。这可能被攻击者利用来在目标机器上执行任意代码,其权限级别等同于 Druid 服务器进程的权限。
## 影响
该漏洞可以被用于在目标机器上以 Druid 服务器进程的权限执行任意代码。因此,攻击者可能获得敏感信息、修改系统配置或完全控制系统。
# | POC 描述 | 源链接 | 神龙链接 |
---|---|---|---|
1 | Apache Druid 远程代码执行;检测脚本 | https://github.com/yaunsky/cve-2021-25646 | POC详情 |
2 | None | https://github.com/lp008/CVE-2021-25646 | POC详情 |
3 | CSharp CVE-2021-25646-GUI | https://github.com/Ormicron/CVE-2021-25646-GUI | POC详情 |
4 | None | https://github.com/Vulnmachines/Apache-Druid-CVE-2021-25646 | POC详情 |
5 | Alibaba-Nacos-Unauthorized/ApacheDruid-RCE_CVE-2021-25646/MS-Exchange-SSRF-CVE-2021-26885/Oracle-WebLogic-CVE-2021-2109_RCE/RG-CNVD-2021-14536/RJ-SSL-VPN-UltraVires/Redis-Unauthorized-RCE/TDOA-V11.7-GetOnlineCookie/VMware-vCenter-GetAnyFile/yongyou-GRP-U8-XXE/Oracle-WebLogic-CVE-2020-14883/Oracle-WebLogic-CVE-2020-14882/Apache-Solr-GetAnyFile/F5-BIG-IP-CVE-2021-22986/Sonicwall-SSL-VPN-RCE/GitLab-Graphql-CNVD-2021-14193/D-Link-DCS-CVE-2020-25078/WLAN-AP-WEA453e-RCE/360TianQing-Unauthorized/360TianQing-SQLinjection/FanWeiOA-V8-SQLinjection/QiZhiBaoLeiJi-AnyUserLogin/QiAnXin-WangKangFirewall-RCE/金山-V8-终端安全系统/NCCloud-SQLinjection/ShowDoc-RCE | https://github.com/1n7erface/PocList | POC详情 |
6 | CVE-2021-25646 Apache Druid 远程代码执行漏洞 Wker脚本 | https://github.com/givemefivw/CVE-2021-25646 | POC详情 |
7 | Apache Druid remote code execution vulnerability - Apache Druid 远程代码执行漏洞利用 CVE-2021-25646 | https://github.com/j2ekim/CVE-2021-25646 | POC详情 |
8 | CVE-2021-25646 Apache Druid 远程代码执行 漏洞检测和利用工具 | https://github.com/luobai8/CVE-2021-25646-exp | POC详情 |
9 | Apache Druid 远程代码执行复现(CVE-2021-25646) | https://github.com/gps1949/CVE-2021-25646 | POC详情 |
10 | Apache Druid is susceptible to remote code execution because by default it lacks authorization and authentication. Attackers can send specially crafted requests to execute arbitrary code with the privileges of processes on the Druid server. | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25646.yaml | POC详情 |
11 | None | https://github.com/Threekiii/Awesome-POC/blob/master/%E6%95%B0%E6%8D%AE%E5%BA%93%E6%BC%8F%E6%B4%9E/Apache%20Druid%20%E8%BF%9C%E7%A8%8B%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E%20CVE-2021-25646.md | POC详情 |
12 | None | https://github.com/Threekiii/Awesome-POC/blob/master/%E6%95%B0%E6%8D%AE%E5%BA%93%E6%BC%8F%E6%B4%9E/Apache%20Druid%20%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E%20CVE-2021-25646.md | POC详情 |
13 | https://github.com/vulhub/vulhub/blob/master/apache-druid/CVE-2021-25646/README.md | POC详情 |