2023-11-30 04:46:13 +00:00
|
|
|
id: matrix-homeserver-detect
|
|
|
|
|
|
|
|
info:
|
2023-12-02 01:58:57 +00:00
|
|
|
name: Matrix Homeserver - Version Detection
|
2023-12-02 07:22:00 +00:00
|
|
|
author: davidegirardi
|
2023-11-30 04:46:13 +00:00
|
|
|
severity: info
|
2023-12-02 01:58:57 +00:00
|
|
|
description: |
|
|
|
|
Extract the Matrix homeserver name and version
|
2023-11-30 04:46:13 +00:00
|
|
|
metadata:
|
2023-12-12 11:07:52 +00:00
|
|
|
verified: true
|
2023-11-30 04:46:13 +00:00
|
|
|
max-request: 1
|
2023-12-02 01:58:57 +00:00
|
|
|
shodan-query: title:"Synapse is running"
|
|
|
|
tags: tech,matrix,synapse
|
2023-11-30 04:46:13 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
2023-12-02 01:58:57 +00:00
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/_matrix/federation/v1/version"
|
|
|
|
|
2023-11-30 04:46:13 +00:00
|
|
|
redirects: true
|
|
|
|
max-redirects: 2
|
|
|
|
|
2023-12-02 07:26:42 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"server":'
|
2023-12-02 09:35:39 +00:00
|
|
|
- '"name":'
|
|
|
|
- '"version":'
|
2023-12-02 07:26:42 +00:00
|
|
|
condition: and
|
|
|
|
|
2023-11-30 04:46:13 +00:00
|
|
|
extractors:
|
|
|
|
- type: json
|
|
|
|
part: body
|
|
|
|
json:
|
|
|
|
- '.server | select((.name != null) and (.version != null)) | .name, .version'
|
2023-12-12 12:02:03 +00:00
|
|
|
# digest: 4a0a0047304502203e1ffa3c5daae7131064e90d6ef6c55e18e48adb8062b670833ad61902a3d87a022100f9a08b0c7c808f73b24041638cfcbca7eef9289d26402551967c25c1a3a41e92:922c64590222798bb761d5b6d8e72950
|