id: fortinet-fortinac-panel

info:
  name: Fortinet FortiNAC Login Panel - Detect
  author: johnk3r
  severity: info
  description: Fortinet FortiNAC login panel was detected.
  classification:
    cvss-metrics: CVSS:3.1/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:fortinac:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: fortinac
    shodan-query: http.title:"Fortinac"
    vendor: fortinet
    verified: true
  tags: panel,fortinet,fortinac,login

http:
  - method: GET
    path:
      - '{{BaseURL}}/WelcomeActions.jsp?action=ajaxGetWelcomeViewInfo'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'FortiNAC'
          - '"product":'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        regex:
          - '"version":"([0-9.]+)"'
# digest: 490a0046304402207b9936848dcbdc8561f66907f5c3ad6ef73331a0276b9060dafac920cb916465022014a7ac1a124aed93013a4358379537e8bbe8f246914f996f68000b5ec2b180f1:922c64590222798bb761d5b6d8e72950