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

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