id: pfsense-login

info:
  name: pfSense Login Panel - Detect
  author: idealphase
  severity: info
  description: pfSense login panel was detected.
  reference:
    - https://www.pfsense.org/download/
    - https://www.pfsense.org/getting-started/
  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:a:pfsense:pfsense:*:*:*:*:*:*:*:*
  metadata:
    google-query: intitle:"pfSense - Login"
    max-request: 1
    product: pfsense
    shodan-query: http.title:"pfSense - Login"
    vendor: pfsense
  tags: panel,pfsense

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>pfSense - Login</title>"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - '<script src="\/js\/pfSense\.js\?(.+)"><\/script>'
# digest: 4a0a00473045022045eeecc15523799a9f32b7dec80a1d258100a90af755034a42c5a29bcec6c496022100c11021d1ae784506b0d79daa795c55cc305cac76d2c3f05529874d4c9592945d:922c64590222798bb761d5b6d8e72950