Merge pull request #8722 from davidegirardi/add-element-web-version-detection
Add version extraction for Element Webpatch-1
commit
b53b51ff83
|
@ -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]+'
|
Loading…
Reference in New Issue