id: matrix-homeserver-detect info: name: Matrix Homeserver - Version Detection author: davidegirardi severity: info description: | Extract the Matrix homeserver name and version classification: cpe: cpe:2.3:a:matrix:synapse:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: matrix product: synapse shodan-query: title:"Synapse is running" tags: tech,matrix,synapse http: - method: GET path: - "{{BaseURL}}/_matrix/federation/v1/version" redirects: true max-redirects: 2 matchers: - type: word part: body words: - '"server":' - '"name":' - '"version":' condition: and extractors: - type: json part: body json: - '.server | select((.name != null) and (.version != null)) | .name, .version' # digest: 4a0a004730450221009851fed2ec1b494e96ed5c1a5b581d0ab439edff0b9631a946de2ff98382edd90220052e76972600efba7cbc4b1f07e3fb27139de0549d312ea1a37e7387fe77bf26:922c64590222798bb761d5b6d8e72950