id: fortinet-fortios-management-panel

info:
  name: Fortinet FortiOS Management Interface Panel - Detect
  author: mbmy
  severity: info
  description: Fortinet FortiOS Management interface 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:o:fortinet:fortios:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: fortinet
    product: fortios
    shodan-query:
      - http.favicon.hash:945408572
      - cpe:"cpe:2.3:o:fortinet:fortios"
      - port:10443 http.favicon.hash:945408572
      - http.html:"/remote/login" "xxxxxxxx"
    fofa-query:
      - body="/remote/login" "xxxxxxxx"
      - icon_hash=945408572
  tags: panel,fortinet,fortios,fortigate,fortiproxy,fortiap

http:
  - method: GET
    path:
      - "{{BaseURL}}/login?redir=/ng"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<html class="main-app">'
          - '<f-icon class="fa-warning'
          - "</f-icon>"
        condition: and

      - type: word
        part: header
        words:
          - "APSCOOKIE_"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502204b302a32b9f64ff69c2dcab286afbb10aaab5d6809c9c3455ddd2706db8294eb022100cc4036d871a1cb2714f9379dfe8cd3a466797b343534403c9d91c4a7dae71351:922c64590222798bb761d5b6d8e72950