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:
    verified: true
    max-request: 1
    vendor: fortinet
    product: fortinac
    shodan-query:
      - http.title:"Fortinac"
      - http.title:"fortinac"
    fofa-query: title="fortinac"
    google-query: intitle:"fortinac"
  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: 490a0046304402207141335bd53bd2277bc5189d3f13909ac33c4bd54d42cb94393f2a7ee0f2d48b02203f688c7d219f3fe7037100fd8a9d06b3bdab2be978efac0e6316c9b18dbe2e9c:922c64590222798bb761d5b6d8e72950