id: freepbx-administration-panel

info:
  name: FreePBX Admin Panel - Detect
  author: tess
  severity: info
  description: FreePBX admin panel was detected.
  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:sangoma:freepbx:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: sangoma
    product: freepbx
    shodan-query:
      - http.title:"FreePBX Administration"
      - http.title:"freepbx administration"
    fofa-query: title="freepbx administration"
    google-query: intitle:"freepbx administration"
  tags: freepbx,panel,sangoma

http:
  - method: GET
    path:
      - '{{BaseURL}}/admin/config.php#'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'FreePBX Administration'
          - 'Operator Panel'
          - 'User Control Panel'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100e03c56506b0dc648505660fca52f7d0e0a8cb7f2004d8623370cf6de781d24ed02200323dac46adb49f48df6e11073d6fd740a56c0ba269f16bd1da72dbd4e1c6321:922c64590222798bb761d5b6d8e72950