id: fortimail-login

info:
  name: Fortinet FortiMail Login Panel - Detect
  author: johnk3r
  severity: info
  description: Fortinet FortiMail login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:fortinet:fortimail:*:*:*:*:*:*:*:*
  metadata:
    fofa-query: Fortimail && port=443
    max-request: 1
    product: fortimail
    shodan-query: title:"Fortimail"
    vendor: fortinet
  tags: panel,fortinet,fortimail,login

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>FortiMail</title>'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022063e2160a33f9d9af7ed0d2908fe7f33f987fada6ec8e8f5fa9b22458b808d65d022100d145c2eb91337ece9f761a8de595f22d070544e019ded711c5ae547ac6757de6:922c64590222798bb761d5b6d8e72950