40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
id: clickhouse-unauth-api
|
|
|
|
info:
|
|
name: ClickHouse API Database Interface - Improper Authorization
|
|
author: DhiyaneshDk
|
|
severity: high
|
|
description: Clickhouse API Database is exposed.
|
|
reference:
|
|
- https://github.com/luck-ying/Library-POC/blob/master/ClickHouse%E6%95%B0%E6%8D%AE%E5%BA%93/ClickHouse%E6%95%B0%E6%8D%AE%E5%BA%93%208123%E7%AB%AF%E5%8F%A3%E7%9A%84%E6%9C%AA%E6%8E%88%E6%9D%83%E8%AE%BF%E9%97%AE.py
|
|
- https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/redteam/vulnerability/unauthorized/ClickHouse%208123%E7%AB%AF%E5%8F%A3.md?plain=1
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
shodan-query: "X-ClickHouse-Summary"
|
|
fofa-query: "X-ClickHouse-Summary"
|
|
tags: misconfig,clickhouse,unauth,disclosure
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/?query=SHOW%20DATABASES"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- 'default'
|
|
- 'system'
|
|
condition: and
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- 'text/tab-separated-values'
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
# digest: 4a0a00473045022100a0b5c453b540196a3297c18713c3638b6327d815009a24c1b054e31cd98ab0ab02203243446e5cb8801e67889a19c0c6dd4298a25228b1181c835f909574b5096336:922c64590222798bb761d5b6d8e72950 |