id: mattermost-panel

info:
  name: Mattermost Login - Panel
  author: darses
  severity: info
  description: |
    Mattermost Login Panel was discovered.
  metadata:
    verified: true
    max-requests: 1
    shodan-query: html:'content="Mattermost"'
    fofa-query: 'content="Mattermost"'
    vendor: mattermost
  tags: login,mattermost,panel

http:
  - method: GET
    path:
      - "{{BaseURL}}/login"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - content="Mattermost"
        case-insensitive: true

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        name: version
        part: header
        group: 1
        regex:
          - 'X-Version-Id: (\d+\.\d+\.\d+)'
# digest: 4b0a00483046022100f59f2f69febd3be341379959a183d7f424f03affbaaf612562004d087a06975e022100a936224439c473555c2f0d7460ec19666cb6f4cdc5beb9fb75e088657692a8d5:922c64590222798bb761d5b6d8e72950