nuclei-templates/http/technologies/element-web-detect.yaml

36 lines
1011 B
YAML
Raw Normal View History

id: element-web-detect
2023-11-30 04:44:41 +00:00
info:
name: Element Web - Detect
author: davidegirardi
2023-11-30 04:44:41 +00:00
severity: info
description: Identify if a web application is vanilla Element Web and return the version
metadata:
verified: true
max-request: 2
shodan-query: html:"manifest.json"
tags: tech,matrix,element,detect
2023-11-30 04:44:41 +00:00
http:
- method: GET
path:
- "{{BaseURL}}/manifest.json"
- "{{BaseURL}}/version"
host-redirects: true
max-redirects: 2
2023-11-30 04:44:41 +00:00
matchers:
- type: dsl
dsl:
- 'status_code_1 == 200'
2023-11-30 04:44:41 +00:00
- 'contains(content_type_1, "application/json")'
- 'contains(json_minify(body_1), "\"name\":\"Element\"")'
- 'status_code_2 == 200'
2023-11-30 04:44:41 +00:00
condition: and
extractors:
- type: regex
part: body
regex:
- '[^\s]+'
# digest: 4a0a0047304502205410e006bfb51302b79c929988e99705a9fbdcba4f23221cad2c63bc02dc59ce022100ac77e3d22cc46dff3d215d2850f5349cc77bc9ca0700279ee10455163a4795b1:922c64590222798bb761d5b6d8e72950