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,discovery

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