nuclei-templates/http/exposures/apis/seafile-api.yaml

50 lines
1.1 KiB
YAML

id: seafile-api
info:
name: Seafile API - Detect
author: righettod
severity: info
description: |
Seafile API was detected.
reference:
- https://download.seafile.com/published/web-api/home.md
- https://manual.seafile.com/
- https://www.seafile.com/en/home/
metadata:
verified: true
max-request: 1
shodan-query: http.html:"seafile"
tags: exposure,api,detect
http:
- method: GET
path:
- '{{BaseURL}}/api2/server-info/'
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'seafile-basic'
- 'seafile-pro'
condition: or
- type: word
part: header
words:
- 'application/json'
- type: status
status:
- 200
extractors:
- type: regex
part: body
group: 1
regex:
- '"version":\s*"([0-9.]+)"'
# digest: 4a0a00473045022100c47c1ae5d724d7b5a58f902d8807a9c455951aea612d75bae34e5f0b5fbf0d5f022004cbf64a4224a7d86c861b15ee1983a7b9a0d5ea80efc59b92ff61adb2cc285d:922c64590222798bb761d5b6d8e72950