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:
    max-request: 1
    vendor: fortinet
    product: fortimail
    shodan-query:
      - title:"Fortimail"
      - http.title:"fortimail"
    fofa-query:
      - Fortimail && port=443
      - fortimail && port=443
      - title="fortimail"
    google-query: intitle:"fortimail"
  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: 4b0a00483046022100a40c859010c96443b865aa1ba335c813caf93e760f3cbc6e356c04e57925cd3b022100bc24541a7cf100c2914166f7ad25fac97291a29331668f42e1308b0d1b125b10:922c64590222798bb761d5b6d8e72950