2020-06-19 23:37:41 +00:00
|
|
|
id: elasticsearch
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: ElasticSearch Information Disclosure
|
2022-12-05 12:00:14 +00:00
|
|
|
author: Shine,c-sh0,geeknik
|
2020-06-19 23:37:41 +00:00
|
|
|
severity: low
|
2022-12-05 12:00:14 +00:00
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 4
|
2022-12-05 12:00:14 +00:00
|
|
|
verified: true
|
|
|
|
shodan-query: "ElasticSearch"
|
2023-06-02 23:20:49 +00:00
|
|
|
tags: elastic,unauth,elasticsearch,misconfig
|
2020-06-19 23:37:41 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2020-06-19 23:37:41 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2022-03-24 12:25:39 +00:00
|
|
|
- '{{BaseURL}}/?pretty'
|
2020-06-19 23:37:41 +00:00
|
|
|
- '{{BaseURL}}/_cat/indices?v'
|
|
|
|
- '{{BaseURL}}/_all/_search'
|
2022-12-05 12:00:14 +00:00
|
|
|
- "{{BaseURL}}/_cluster/health?pretty"
|
2020-07-08 08:45:37 +00:00
|
|
|
|
2022-03-24 12:25:39 +00:00
|
|
|
stop-at-first-match: true
|
2020-07-08 08:45:37 +00:00
|
|
|
matchers-condition: and
|
2020-06-19 23:37:41 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- '"took":'
|
2022-03-24 12:25:39 +00:00
|
|
|
- '"number" :'
|
2022-12-09 08:49:16 +00:00
|
|
|
- '"number_of_nodes"'
|
|
|
|
condition: or
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- application/json
|
|
|
|
- application/vnd.api+json
|
|
|
|
- text/plain
|
2022-03-24 12:25:39 +00:00
|
|
|
condition: or
|
|
|
|
|
2020-06-19 23:37:41 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2022-03-24 12:25:39 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '"number"\s:\s"([0-9.]+)"'
|