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
    shodan-query: 'http.html_hash:-1527157728 "Model: FMG-VM"'
    fofa-query: title="FortiManager-"
  tags: panel,fortinet,fortios,fortimanager,detect,discovery

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: 4a0a0047304502206af4b21c7e78d51306f7eb3696606e5d036b8757a62c61459ddcf8b18e0a8d53022100c6c32bd841af065ea49ce5b3f5a1495bc3fa48427e0f7ede09db82f828a10200:922c64590222798bb761d5b6d8e72950