id: fortinet-fortimanager-panel

info:
  name: Fortinet FortiManager Panel - Detect
  author: johnk3r
  severity: info
  description: |
    Fortinet FortiManager panel was detected.
  reference:
    - https://www.fortinet.com/br/products/management/fortimanager
  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:fortimanager:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: fortimanager
    vendor: fortinet
  tags: panel,fortinet,fortios,fortimanager,detect

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "FortiManager"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<span class="platform">(.*?)</span>'
# digest: 4a0a0047304502201c1fb1ae7545e07e30c912b38d1cab7bf87c4383e579680ce2de778ea7ee3830022100e69f4ad2cf83b81b01f47153628ef9107159692510756f2daec275f66dfeb9fc:922c64590222798bb761d5b6d8e72950