id: fortios-panel

info:
  name: FortiOS Admin Login Panel - Detect
  author: canberbamber,Jna1
  severity: info
  description: |
    FortiOS admin login panel was detected.
  reference:
    - https://www.horizon3.ai/fortinet-iocs-cve-2022-40684/
  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:o:fortinet:fortios:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: fortios
    shodan-query: http.favicon.hash:945408572
    vendor: fortinet
    verified: true
  tags: panel,fortinet,fortios

http:
  - raw:
      - |
        GET /api/v2/cmdb/system/admin/admin HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '/remote/login'

      - type: word
        part: header
        words:
          - 'Server: xxxxxxxx-xxxxx'

      - type: status
        status:
          - 403
# digest: 4a0a0047304502201612ef79ff597833538006f05a1e62bb00376d4f796105523ebceef3edc0da1b022100ea57b8039844b2e96b4e6c96dd2c3e6cad725232da4f8e0d36e796f72505bf94:922c64590222798bb761d5b6d8e72950