id: enable-https-protocol

info:
  name: Pfsense Web Admin Management Portal HTTPS Not Set - Detect
  author: pussycat0x
  severity: info
  description: |
    PfSense Web Admin Management Portal is recommended to be accessible using only HTTPS protocol. HTTP transmits all data, including passwords, in clear text over the network and provides no assurance of the identity of the hosts involved, making it possible for an attacker to obtain sensitive information, modify data, and/or execute unauthorized operations.
  reference: |
    https://docs.netgate.com/pfsense/en/latest/config/advanced-admin.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
  tags: firewall,config,audit,pfsense,file

file:
  - extensions:
      - xml

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<webgui>"
          - "<protocol>https</protocol>"
        condition: and
        negative: true

      - type: word
        words:
          - "<pfsense>"
          - "<system>"
        condition: and

# Enhanced by md on 2023/05/04
# digest: 4a0a00473045022100e3f6a2be961a8ef0f2f044b3dd5e71f6c8ddbc3f4d022e0b85a0215c70e253cf022016d8454fe29dfc175b16ece32d52b7c82eba299b87af5c7ca86c353562b8e9cc:922c64590222798bb761d5b6d8e72950