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
    vendor: fortinet
    product: fortimanager
  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: 4a0a00473045022050f5b47f61465736a3237d07280b6aa15a2229bc01828f4cac9118bcca420dc3022100e135bc54456e89441ec9a81619c01af7ed9924751bdc975db7a17855013b41bd:922c64590222798bb761d5b6d8e72950