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:
    max-request: 1
    vendor: pfsense
    product: pfsense
    shodan-query:
      - http.title:"pfSense - Login"
      - http.title:"pfsense - login"
    google-query:
      - intitle:"pfSense - Login"
      - intitle:"pfsense - login"
    fofa-query: title="pfsense - login"
  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: 490a00463044022019aaee02c86d3fdec7a08c599399b9fc19636a45254997afd4a3d27e4413575502203d19783b77628823b29be80d12a03c8e569f4e9f50bd3e1f3ddb1e35d6f774e8:922c64590222798bb761d5b6d8e72950