Merge pull request #8722 from davidegirardi/add-element-web-version-detection

Add version extraction for Element Web
patch-1
Dhiyaneshwaran 2023-12-08 11:15:28 +05:30 committed by GitHub
commit b53b51ff83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 0 deletions

View File

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